various fixes

This commit is contained in:
bunkerity
2020-11-13 17:57:39 +01:00
parent 8cdc155ac0
commit 0f0593456c
21 changed files with 22 additions and 22 deletions

View File

@@ -16,6 +16,7 @@ services:
- AUTO_LETS_ENCRYPT=yes
- REDIRECT_HTTP_TO_HTTPS=yes
- DISABLE_DEFAULT_SERVER=yes
- USE_CLIENT_CACHE=yes
- REMOTE_PHP=myphp
- REMOTE_PHP_PATH=/app

View File

@@ -2,5 +2,5 @@ proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_pass http://app$request_uri;
proxy_pass http://app;
}

View File

@@ -2,7 +2,5 @@ proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
if ($host = www.website.com) {
proxy_pass http://mymoodle:8443$request_uri;
}
proxy_pass https://mymoodle:8443;
}

View File

@@ -18,11 +18,13 @@ services:
- AUTO_LETS_ENCRYPT=yes
- REDIRECT_HTTP_TO_HTTPS=yes
- DISABLE_DEFAULT_SERVER=yes
- USE_CLIENT_CACHE=yes
- app1.website.com_REMOTE_PHP=myapp1
- app1.website.com_REMOTE_PHP_PATH=/app
- app2.website.com_REMOTE_PHP=myapp2
- app2.website.com_REMOTE_PHP_PATH=/app
- app3.website.com_SERVE_FILES=no
- app3.website.com_USE_CLIENT_CACHE=no
networks:
- net1
- net2

View File

@@ -2,5 +2,5 @@ proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_pass http://myapp3:3000$request_uri;
proxy_pass http://myapp3:3000;
}

View File

@@ -20,6 +20,7 @@ services:
- AUTO_LETS_ENCRYPT=yes
- REDIRECT_HTTP_TO_HTTPS=yes
- DISABLE_DEFAULT_SERVER=yes
- USE_CLIENT_CACHE=yes
- wp.website.com_REMOTE_PHP=mywp
- wp.website.com_REMOTE_PHP_PATH=/var/www/html
- nc.website.com_REMOTE_PHP=mync

View File

@@ -20,6 +20,7 @@ services:
- REDIRECT_HTTP_TO_HTTPS=yes
- DISABLE_DEFAULT_SERVER=yes
- MAX_CLIENT_SIZE=10G
- USE_CLIENT_CACHE=yes
- REMOTE_PHP=mync
- REMOTE_PHP_PATH=/var/www/html
- LIMIT_REQ_RATE=40r/s

View File

@@ -2,8 +2,6 @@ proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
if ($host = www.website.com) {
proxy_pass https://mypassbolt:443$request_uri;
}
proxy_pass https://mypassbolt;
}

View File

@@ -3,10 +3,10 @@ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
if ($host = app1.website.com) {
proxy_pass http://app1:3000$request_uri;
proxy_pass http://app1:3000;
}
if ($host = app2.website.com) {
proxy_pass http://app2$request_uri;
proxy_pass http://app2;
}
}

View File

@@ -2,5 +2,5 @@ proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_pass http://mytomcat:8080/sample$request_uri;
proxy_pass http://mytomcat:8080/sample;
}

View File

@@ -27,6 +27,7 @@ services:
- USE_BLACKLIST_IP=no
- USE_BLACKLIST_REVERSE=no
- USE_FAIL2BAN=no
- USE_CLIENT_CACHE=yes
- REMOTE_PHP=myphp
- REMOTE_PHP_PATH=/app

View File

@@ -19,6 +19,7 @@ services:
- REDIRECT_HTTP_TO_HTTPS=yes
- DISABLE_DEFAULT_SERVER=yes
- MAX_CLIENT_SIZE=50m
- USE_CLIENT_CACHE=yes
- REMOTE_PHP=mywp
- REMOTE_PHP_PATH=/var/www/html