nginxconf
This commit is contained in:
@@ -2,8 +2,9 @@ server {
|
|||||||
listen 8080;
|
listen 8080;
|
||||||
error_log /var/log/nginx/error.log notice;
|
error_log /var/log/nginx/error.log notice;
|
||||||
rewrite_log on;
|
rewrite_log on;
|
||||||
|
resolver 127.0.0.1 valid=30s;
|
||||||
|
set $flaskfetfotos flaskfetfotos:8080;
|
||||||
|
set $etherpad etherpad:9001;
|
||||||
location /assets {
|
location /assets {
|
||||||
alias /app/assets;
|
alias /app/assets;
|
||||||
try_files $uri =404;
|
try_files $uri =404;
|
||||||
@@ -15,11 +16,9 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /fotos {
|
location /fotos {
|
||||||
resolver 127.0.0.1 valid=30s;
|
|
||||||
proxy_ssl_server_name on;
|
proxy_ssl_server_name on;
|
||||||
proxy_ssl_verify off;
|
proxy_ssl_verify off;
|
||||||
|
proxy_pass http://$flaskfetfotos;
|
||||||
proxy_pass http://flaskfetfotos:8080;
|
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
# proxy_set_header REMOTE-USER $http_REMOTE_USER;
|
# proxy_set_header REMOTE-USER $http_REMOTE_USER;
|
||||||
@@ -32,7 +31,7 @@ server {
|
|||||||
location /etherpad {
|
location /etherpad {
|
||||||
rewrite /etherpad/(.*) /$1 break;
|
rewrite /etherpad/(.*) /$1 break;
|
||||||
rewrite ^/etherpad$ /etherpad/ permanent;
|
rewrite ^/etherpad$ /etherpad/ permanent;
|
||||||
proxy_pass http://etherpad:9001;
|
proxy_pass http://$etherpad;
|
||||||
proxy_redirect / /etherpad/;
|
proxy_redirect / /etherpad/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
|
|||||||
Reference in New Issue
Block a user