aboutsummaryrefslogtreecommitdiff
path: root/docker/nginx/chibisafe.moe.https.example.conf
diff options
context:
space:
mode:
authorKana <[email protected]>2020-12-27 05:03:13 +0900
committerGitHub <[email protected]>2020-12-27 05:03:13 +0900
commit2737eb5c2c20e53a984a78ab7e64c0fd5b9e88be (patch)
tree7d45769f3c88aa6346483abcaa4370f67fced603 /docker/nginx/chibisafe.moe.https.example.conf
parentMerge pull request #230 from WeebDev/fix/chunk-uploads (diff)
parentadd docker support (diff)
downloadhost.fuwn.me-2737eb5c2c20e53a984a78ab7e64c0fd5b9e88be.tar.xz
host.fuwn.me-2737eb5c2c20e53a984a78ab7e64c0fd5b9e88be.zip
Merge pull request #229 from WeebDev/feat/docker
add docker support
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;
+}