aboutsummaryrefslogtreecommitdiff
path: root/docker/nginx/chibisafe.moe.https.example.conf
diff options
context:
space:
mode:
Diffstat (limited to 'docker/nginx/chibisafe.moe.https.example.conf')
-rw-r--r--docker/nginx/chibisafe.moe.https.example.conf32
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;
+}