diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..dba0c26 --- /dev/null +++ b/README.txt @@ -0,0 +1,5 @@ +location / { + include proxy.conf; + proxy_buffering off; + proxy_pass http://$proxy_host:$proxy_port; +} \ No newline at end of file diff --git a/default.conf b/default.conf index 2d09dc7..2b747a3 100644 --- a/default.conf +++ b/default.conf @@ -6,6 +6,20 @@ server { } } +server { + listen 80; + server_name test.nginx.fet.at; + include auto_ssl.conf; + location / { + return 302 https://$host$request_uri; + } +} +server { + listen 443 ssl; + server_name test.nginx.fet.at; + include ldap.conf; + include ssl.conf;} + server { listen 443 ssl default_server; server_name kistl.htu.tuwien.ac.at; @@ -53,4 +67,5 @@ server { include /etc/nginx/conf.d/fet.at/*.conf; include /etc/nginx/conf.d/dev/*.conf; -include /etc/nginx/conf.d/andis/*.at; \ No newline at end of file +include /etc/nginx/conf.d/andis/*.at; +include /etc/nginx/conf.d/fachschaften.at/*.at; diff --git a/fachschaften.at/fachschaften.at b/fachschaften.at/fachschaften.at new file mode 100644 index 0000000..e91755e --- /dev/null +++ b/fachschaften.at/fachschaften.at @@ -0,0 +1,36 @@ +server { + listen 443 ssl ; + server_name dev.fachschaften.at; + include ssl.conf; + include ldap.conf; + set $proxy_host devnginx_theia_1; + set $proxy_port 3000; + include internal_proxy.conf; +} +server { + listen 443 ssl ; + server_name config.fachschaften.at; + include ssl.conf; + include ldap.conf; + set $proxy_host theiaconf; + set $proxy_port 3000; + include internal_proxy.conf; +} +server { + listen 443 ssl; + server_name fet.fachschaften.at; + set $proxy_host fetsite21; + set $proxy_port 8001; + include ssl.conf; + include ldap.conf; + location / { + include proxy.conf; + include secure.conf; + proxy_buffering off; + proxy_pass http://$proxy_host:$proxy_port; + proxy_set_header Host fet.at; + + } + + +} \ No newline at end of file diff --git a/restart b/restart new file mode 100755 index 0000000..e641c77 --- /dev/null +++ b/restart @@ -0,0 +1,2 @@ +#!/bin/bash +docker restart triton2_openresty_1 \ No newline at end of file diff --git a/t b/t new file mode 100755 index 0000000..1b861a0 --- /dev/null +++ b/t @@ -0,0 +1,2 @@ +#!/bin/bash +docker exec triton2_openresty_1 /usr/local/openresty/bin/openresty -t \ No newline at end of file