|
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 | + |
5 | 6 | server { |
6 | | - listen *:80 default_server; |
| 7 | +- listen *:80 default_server; |
| 8 | ++ listen *:${ST2_PORT_HTTP} default_server; |
7 | 9 | + server_tokens off; |
8 | | - |
| 10 | + |
9 | 11 | - add_header Front-End-Https on; |
10 | 12 | add_header X-Content-Type-Options nosniff; |
11 | | - |
| 13 | + |
12 | 14 | - if ($ssl_protocol = "") { |
13 | 15 | - return 308 https://$host$request_uri; |
14 | 16 | - } |
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 | +- |
20 | 22 | - access_log /var/log/nginx/st2webui.access.log combined; |
21 | 23 | - error_log /var/log/nginx/st2webui.error.log; |
22 | 24 | -} |
|
25 | 27 | - listen *:443 ssl; |
26 | 28 | - server_tokens off; |
27 | 29 | - |
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 | + } |
31 | 33 | - |
32 | 34 | - ssl_certificate /etc/ssl/st2/st2.crt; |
33 | 35 | - ssl_certificate_key /etc/ssl/st2/st2.key; |
|
37 | 39 | - 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; |
38 | 40 | - ssl_prefer_server_ciphers on; |
39 | 41 | - |
40 | | -- index index.html; |
41 | | -- |
| 42 | + index index.html; |
| 43 | + |
42 | 44 | - access_log /var/log/nginx/ssl-st2webui.access.log combined; |
43 | 45 | - error_log /var/log/nginx/ssl-st2webui.error.log; |
44 | 46 | + access_log /proc/self/fd/1 combined; |
45 | 47 | + error_log stderr; |
46 | | - |
| 48 | + |
47 | 49 | - add_header Front-End-Https on; |
48 | 50 | add_header X-Content-Type-Options nosniff; |
49 | 51 | add_header X-Frame-Options DENY always; |
50 | 52 | add_header Strict-Transport-Security "max-age=3153600;includeSubDomains"; |
51 | 53 | @@ -61,7 +35,7 @@ |
52 | | - |
| 54 | + |
53 | 55 | rewrite ^/api/(.*) /$1 break; |
54 | | - |
| 56 | + |
55 | 57 | - proxy_pass http://127.0.0.1:9101/; |
56 | 58 | + proxy_pass ${ST2_API_URL}; |
57 | 59 | proxy_read_timeout 90; |
58 | 60 | proxy_connect_timeout 90; |
59 | 61 | proxy_redirect off; |
60 | 62 | @@ -99,7 +73,7 @@ |
61 | | - |
| 63 | + |
62 | 64 | rewrite ^/stream/(.*) /$1 break; |
63 | | - |
| 65 | + |
64 | 66 | - proxy_pass http://127.0.0.1:9102/; |
65 | 67 | + proxy_pass ${ST2_STREAM_URL}; |
66 | 68 | proxy_set_header Host $host; |
67 | 69 | proxy_set_header X-Real-IP $remote_addr; |
68 | 70 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
69 | 71 | @@ -138,7 +112,7 @@ |
70 | | - |
| 72 | + |
71 | 73 | rewrite ^/auth/(.*) /$1 break; |
72 | | - |
| 74 | + |
73 | 75 | - proxy_pass http://127.0.0.1:9100/; |
74 | 76 | + proxy_pass ${ST2_AUTH_URL}; |
75 | 77 | proxy_read_timeout 90; |
|
0 commit comments