diff options
| author | iCrawl <[email protected]> | 2020-12-24 20:16:00 +0100 |
|---|---|---|
| committer | iCrawl <[email protected]> | 2020-12-26 21:00:53 +0100 |
| commit | 5d2d46d8dca912614d6893a9f3ff30a487e76a77 (patch) | |
| tree | 7d45769f3c88aa6346483abcaa4370f67fced603 /docker/nginx/chibisafe.moe.https.example.conf | |
| parent | Merge pull request #230 from WeebDev/fix/chunk-uploads (diff) | |
| download | host.fuwn.me-5d2d46d8dca912614d6893a9f3ff30a487e76a77.tar.xz host.fuwn.me-5d2d46d8dca912614d6893a9f3ff30a487e76a77.zip | |
add docker support
Diffstat (limited to 'docker/nginx/chibisafe.moe.https.example.conf')
| -rw-r--r-- | docker/nginx/chibisafe.moe.https.example.conf | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/docker/nginx/chibisafe.moe.https.example.conf b/docker/nginx/chibisafe.moe.https.example.conf new file mode 100644 index 0000000..fce9e9a --- /dev/null +++ b/docker/nginx/chibisafe.moe.https.example.conf @@ -0,0 +1,32 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name chibisafe.moe; + + # SSL + ssl_certificate /etc/nginx/ssl/chibisafe.moe.crt; + ssl_certificate_key /etc/nginx/ssl/chibisafe.moe.key; + + # security + include nginxconfig.io/security.conf; + + # logging + access_log /var/log/nginx/chibisafe.moe.access.log; + error_log /var/log/nginx/chibisafe.moe.error.log warn; + + # reverse proxy + location / { + proxy_pass http://localhost:5000; + include nginxconfig.io/proxy.conf; + } + + # additional config + include nginxconfig.io/general.conf; +} + +# HTTP redirect +server { + listen 80; + listen [::]:80; + return 301 https://$server_name$request_uri; +} |