diff options
author | Georg | 2021-08-30 20:57:56 +0200 |
---|---|---|
committer | Georg | 2021-08-30 20:57:56 +0200 |
commit | 11593494361e9e141c095bb04a9873dd85c41df0 (patch) | |
tree | d3bdfa1365d41af72ea37967f2f5a74f3574fe97 /nginx/04 | |
parent | 247dc78649d524fb70c1ec5c7da69262ad4d1486 (diff) | |
download | system-11593494361e9e141c095bb04a9873dd85c41df0.tar.gz system-11593494361e9e141c095bb04a9873dd85c41df0.tar.bz2 system-11593494361e9e141c095bb04a9873dd85c41df0.zip |
Initial nginx run 04/05
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'nginx/04')
-rw-r--r-- | nginx/04/cachet.conf | 27 | ||||
-rw-r--r-- | nginx/04/stub_status.conf | 6 |
2 files changed, 33 insertions, 0 deletions
diff --git a/nginx/04/cachet.conf b/nginx/04/cachet.conf new file mode 100644 index 0000000..ff5ea86 --- /dev/null +++ b/nginx/04/cachet.conf @@ -0,0 +1,27 @@ +server { + listen 172.16.9.2:8033; + server_name cachet.local; + + root /opt/cachet/Cachet-2.5.0/public; + index index.php; + +# ssl_certificate /etc/ssl/crt/cachet.mycompany.com.crt; # Or wherever your crt is +# ssl_certificate_key /etc/ssl/key/cachet.mycompany.com.key; # Or wherever your key is +# ssl_session_timeout 5m; + + ssl_protocols TLSv1.3 TLSv1.2; + + location / { + add_header Strict-Transport-Security max-age=15768000; + try_files $uri /index.php$is_args$args; + } + + location ~ \.php$ { + include fastcgi_params; + fastcgi_pass unix:/run/php-fpm/nginx.sock; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + fastcgi_index index.php; + fastcgi_keep_conn on; + add_header Strict-Transport-Security max-age=15768000; + } +} diff --git a/nginx/04/stub_status.conf b/nginx/04/stub_status.conf new file mode 100644 index 0000000..8f2573f --- /dev/null +++ b/nginx/04/stub_status.conf @@ -0,0 +1,6 @@ +server { + listen 127.0.0.2:8080; + location = /stub_status { + stub_status; + } +} |