1- --- st2.conf 2021-06-18 19:45:50.892196136 +0100
2- +++ st2.http.conf 2021-06-18 19:50:00.098280995 +0100
3- @@ -8,44 +8,18 @@
4-
1+ --- st2.conf 2023-09-01 16:31:41.000000000 +0100
2+ +++ st2.http.conf 2023-09-01 16:33:45.000000000 +0100
3+ @@ -7,45 +7,19 @@
4+ # see https://docs.stackstorm.com/install.html for details
5+
56 server {
6- listen *:80 default_server;
7+ - listen *:80 default_server;
8+ + listen *:8080 default_server;
79+ server_tokens off;
8-
10+
911- add_header Front-End-Https on;
1012 add_header X-Content-Type-Options nosniff;
11-
13+
1214- if ($ssl_protocol = "") {
1315- return 308 https://$host$request_uri;
1416- }
15- if ($request_method !~ ^(GET|HEAD|POST|PUT|DELETE|OPTIONS)$ ) {
16- return 405;
17- }
18- index index.html;
19-
17+ - if ($request_method !~ ^(GET|HEAD|POST|PUT|DELETE|OPTIONS)$ ) {
18+ - return 405;
19+ - }
20+ - index index.html;
21+ -
2022- access_log /var/log/nginx/st2webui.access.log combined;
2123- error_log /var/log/nginx/st2webui.error.log;
2224- }
2527- listen *:443 ssl;
2628- server_tokens off;
2729-
28- - if ($request_method !~ ^(GET|HEAD|POST|PUT|DELETE|OPTIONS)$ ) {
29- - return 405;
30- - }
30+ if ($request_method !~ ^(GET|HEAD|POST|PUT|DELETE|OPTIONS)$ ) {
31+ return 405;
32+ }
3133-
3234- ssl_certificate /etc/ssl/st2/st2.crt;
3335- ssl_certificate_key /etc/ssl/st2/st2.key;
3739- ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH:ECDHE-RSA-AES128-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA128:DHE-RSA-AES128-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-GCM-SHA128:ECDHE-RSA-AES128-SHA384:ECDHE-RSA-AES128-SHA128:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA128:DHE-RSA-AES128-SHA128:DHE-RSA-AES128-SHA:DHE-RSA-AES128-SHA:AES128-GCM-SHA384:AES128-GCM-SHA128:AES128-SHA128:AES128-SHA128:AES128-SHA:AES128-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4;
3840- ssl_prefer_server_ciphers on;
3941-
40- - index index.html;
41- -
42+ index index.html;
43+
4244- access_log /var/log/nginx/ssl-st2webui.access.log combined;
4345- error_log /var/log/nginx/ssl-st2webui.error.log;
4446+ access_log /proc/self/fd/1 combined;
4547+ error_log stderr;
46-
48+
4749- add_header Front-End-Https on;
4850 add_header X-Content-Type-Options nosniff;
4951 add_header X-Frame-Options DENY always;
5052 add_header Strict-Transport-Security "max-age=3153600;includeSubDomains";
5153@@ -61,7 +35,7 @@
52-
54+
5355 rewrite ^/api/(.*) /$1 break;
54-
56+
5557- proxy_pass http://127.0.0.1:9101/;
5658+ proxy_pass ${ST2_API_URL};
5759 proxy_read_timeout 90;
5860 proxy_connect_timeout 90;
5961 proxy_redirect off;
6062@@ -99,7 +73,7 @@
61-
63+
6264 rewrite ^/stream/(.*) /$1 break;
63-
65+
6466- proxy_pass http://127.0.0.1:9102/;
6567+ proxy_pass ${ST2_STREAM_URL};
6668 proxy_set_header Host $host;
6769 proxy_set_header X-Real-IP $remote_addr;
6870 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
6971@@ -138,7 +112,7 @@
70-
72+
7173 rewrite ^/auth/(.*) /$1 break;
72-
74+
7375- proxy_pass http://127.0.0.1:9100/;
7476+ proxy_pass ${ST2_AUTH_URL};
7577 proxy_read_timeout 90;
7678 proxy_connect_timeout 90;
77- proxy_redirect off;
79+ proxy_redirect off;
0 commit comments