Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions sysadmin/configs/nginx/default-docker
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,15 @@ server {

# DEMOS
location /demo/ {
# If you want to see the value of a variable, the easiest way is
# adding a header like the example below
# add_header X-debug-message "$host" always;
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}

# CP
location /cp/ {
add_header X-debug-message "$host" always;
# If the distribution is Debian you need the resolver
# resolver 127.0.0.1;
proxy_pass http://$host:8000;
proxy_pass http://127.0.0.1:8000;
}

location /cp2/static/ {
Expand All @@ -87,24 +84,24 @@ server {
proxy_pass http://cp2_socket;
break;
}
proxy_pass http://$host:8002;
proxy_pass http://127.0.0.1:8002;
}

# CORE
location /api/core/{
rewrite ^/api/core/(.*) /$1 break;
# If the distribution is Debian you need the resolver
# resolver 127.0.0.1;
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}
location /api/dispatcher/ {
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}
location /api/conversion/ {
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}
location /api/demoinfo/ {
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}

# shared_folder, run static data
Expand All @@ -120,7 +117,7 @@ server {
rewrite ^/api/blobs/(.*) /$1 break;
# If the distribution is Debian you need the resolver
# resolver 127.0.0.1;
proxy_pass http://$host:9001;
proxy_pass http://127.0.0.1:9001;
}
#
# BLOBS static data
Expand All @@ -136,7 +133,7 @@ server {
rewrite ^/api/archive/(.*) /$1 break;
# If the distribution is Debian you need the resolver
# resolver 127.0.0.1;
proxy_pass http://$host:9000;
proxy_pass http://127.0.0.1:9000;
}
#
# ARCHIVE static data
Expand All @@ -152,14 +149,14 @@ server {
rewrite ^/api/demorunner/dr/(.*) /$1 break;
# If the distribution is Debian you need the resolver
# resolver 127.0.0.1;
proxy_pass http://$host:9004;
proxy_pass http://127.0.0.1:9004;
proxy_buffering off;
}

location / {
return 301 /demo/;
# If the distribution is Debian you need the resolver
# resolver 127.0.0.1;
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}
}
20 changes: 10 additions & 10 deletions sysadmin/configs/nginx/default-integration
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ server {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.passwd/auth_test;
resolver 127.0.0.1;
proxy_pass http://$host:81/$request_uri;
proxy_pass http://127.0.0.1:81/$request_uri;
}

location /auth_src/ {
Expand All @@ -107,7 +107,7 @@ server {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.passwd/integration;
resolver 127.0.0.1;
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}

# CP
Expand All @@ -126,7 +126,7 @@ server {
proxy_pass http://cp2_socket;
break;
}
proxy_pass http://$host:8002;
proxy_pass http://127.0.0.1:8002;
}

# Root
Expand All @@ -140,16 +140,16 @@ server {
location /api/core/{
rewrite ^/api/core/(.*) /$1 break;
resolver 127.0.0.1;
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}
location /api/dispatcher/ {
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}
location /api/conversion/ {
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}
location /api/demoinfo/ {
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}

# shared_folder, serve static data
Expand All @@ -164,7 +164,7 @@ server {
location /api/blobs/ {
rewrite ^/api/blobs/(.*) /$1 break;
resolver 127.0.0.1;
proxy_pass http://$host:9001;
proxy_pass http://127.0.0.1:9001;
}

# BLOBS static data
Expand All @@ -180,7 +180,7 @@ server {
location /api/archive/ {
rewrite ^/api/archive/(.*) /$1 break;
resolver 127.0.0.1;
proxy_pass http://$host:9000;
proxy_pass http://127.0.0.1:9000;
}

# ARCHIVE static data
Expand All @@ -195,7 +195,7 @@ server {
location /api/demorunner/my-dr/ {
rewrite ^/api/demorunner/dr_integration/(.*) /$1 break;
resolver 127.0.0.1;
proxy_pass http://$host:9004;
proxy_pass http://127.0.0.1:9004;
proxy_buffering off;
}
}
20 changes: 10 additions & 10 deletions sysadmin/configs/nginx/default-local
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ server {
# adding a header like the example below
# add_header X-debug-message "$host" always;
add_header X-Frame-Options SAMEORIGIN always;
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}

# Root
location / {
return 301 /demo/;
# If the distribution is Debian you need the resolver
# resolver 127.0.0.1;
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}

location /cp2/static/ {
Expand All @@ -77,24 +77,24 @@ server {
proxy_pass http://cp2_socket;
break;
}
proxy_pass http://$host:8002;
proxy_pass http://127.0.0.1:8002;
}

# CORE
location /api/core/{
rewrite ^/api/core/(.*) /$1 break;
# If the distribution is Debian you need the resolver
# resolver 127.0.0.1;
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}
location /api/dispatcher/ {
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}
location /api/conversion/ {
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}
location /api/demoinfo/ {
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}

# shared_folder, serve static data
Expand All @@ -110,7 +110,7 @@ server {
rewrite ^/api/blobs/(.*) /$1 break;
# If the distribution is Debian you need the resolver
# resolver 127.0.0.1;
proxy_pass http://$host:9001;
proxy_pass http://127.0.0.1:9001;
}
#
# BLOBS static data
Expand All @@ -126,7 +126,7 @@ server {
rewrite ^/api/archive/(.*) /$1 break;
# If the distribution is Debian you need the resolver
# resolver 127.0.0.1;
proxy_pass http://$host:9000;
proxy_pass http://127.0.0.1:9000;
}
#
# ARCHIVE static data
Expand All @@ -142,7 +142,7 @@ server {
rewrite ^/api/demorunner/my-dr/(.*) /$1 break;
# If the distribution is Debian you need the resolver
# resolver 127.0.0.1;
proxy_pass http://$host:9004;
proxy_pass http://127.0.0.1:9004;
proxy_buffering off;
}
}
22 changes: 11 additions & 11 deletions sysadmin/configs/nginx/default-prod
Original file line number Diff line number Diff line change
Expand Up @@ -123,29 +123,29 @@ server {
location @CompanyNamePasswd {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.passwd/CompanyName;
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}

# DEMO INDEX FROM CORE
location /demo/ {
resolver 127.0.0.1;
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}

# CORE
location /api/core/{
rewrite ^/api/core/(.*) /$1 break;
resolver 127.0.0.1;
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}
location /api/dispatcher/ {
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}
location /api/conversion/ {
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}
location /api/demoinfo/ {
proxy_pass http://$host:8080;
proxy_pass http://127.0.0.1:8080;
}

# shared_folder, serve static data
Expand All @@ -160,7 +160,7 @@ server {
location /api/blobs/ {
rewrite ^/api/blobs/(.*) /$1 break;
resolver 127.0.0.1;
proxy_pass http://$host:9001;
proxy_pass http://127.0.0.1:9001;
}
#
# BLOBS static data
Expand All @@ -175,7 +175,7 @@ server {
location /api/archive/ {
rewrite ^/api/archive/(.*) /$1 break;
resolver 127.0.0.1;
proxy_pass http://$host:9000;
proxy_pass http://127.0.0.1:9000;
}
#
# ARCHIVE static data
Expand All @@ -190,14 +190,14 @@ server {
location ~ /api/demorunner/my-dr/ {
rewrite ^/api/demorunner/my-dr/(.*) /$1 break;
resolver 127.0.0.1;
proxy_pass http://$host:9004;
proxy_pass http://127.0.0.1:9004;
proxy_buffering off;
}

# Root
location / {
return 301 /demo/;
proxy_pass http://ipolcore.ipol.im:8080;
proxy_pass http://127.0.0.1:8080;
}

location /cp2/static/ {
Expand All @@ -213,6 +213,6 @@ server {
proxy_pass http://cp2_socket;
break;
}
proxy_pass http://$host:8002;
proxy_pass http://127.0.0.1:8002;
}
}