compose conf
This commit is contained in:
@@ -2,16 +2,38 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
include get_auto_ssl.conf;
|
include get_auto_ssl.conf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Dieser Server ist der Zugang zur "Nginx config und wird im 2. Openresty Server genutzt"
|
||||||
|
server {
|
||||||
|
listen 8080;
|
||||||
|
include ldap.conf;
|
||||||
|
resolver 127.0.0.11 valid=30s;
|
||||||
|
set $theiaconf theiaconf;
|
||||||
|
location / {
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header Proxy "";
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "Upgrade";
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarde-Proto $scheme;
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_pass http://$theiaconf:3000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
include auto_ssl.conf;
|
include auto_ssl.conf;
|
||||||
include ldap.conf;
|
include ldap.conf;
|
||||||
|
|
||||||
resolver 127.0.0.11 valid=30s;
|
resolver 127.0.0.11 valid=30s;
|
||||||
set $theia theia;
|
set $theia theia;
|
||||||
location / {
|
location /dev {
|
||||||
#rewrite_log on;
|
rewrite_log on;
|
||||||
#rewrite /dev/(.*) /$1 break;
|
rewrite /dev/(.*) /$1 break;
|
||||||
#rewrite ^/dev$ /dev/ permanent;
|
rewrite ^/dev$ /dev/ permanent;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header Proxy "";
|
proxy_set_header Proxy "";
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
@@ -22,7 +44,7 @@ server {
|
|||||||
|
|
||||||
|
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_pass http://$theiaconf:3000;
|
proxy_pass http://$theia:3000;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -7,6 +7,12 @@ services:
|
|||||||
- "4443:443"
|
- "4443:443"
|
||||||
volumes:
|
volumes:
|
||||||
- nginxconf:/etc/nginx/conf.d/
|
- nginxconf:/etc/nginx/conf.d/
|
||||||
|
openresty:
|
||||||
|
image: docker.triton2.fet.at/openrestyfet:latest
|
||||||
|
ports:
|
||||||
|
- "8081:8080"
|
||||||
|
volumes:
|
||||||
|
- nginxconf:/etc/nginx/conf.d/
|
||||||
theiaconf:
|
theiaconf:
|
||||||
image: docker.triton2.fet.at/dev_theia
|
image: docker.triton2.fet.at/dev_theia
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
Reference in New Issue
Block a user