From e8765b285ba06510c339448911c738a35adc9748 Mon Sep 17 00:00:00 2001 From: parksj10 Date: Fri, 17 Feb 2023 13:18:18 -0800 Subject: [PATCH] add wikijs conf --- wikijs.subdomain.conf | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 wikijs.subdomain.conf diff --git a/wikijs.subdomain.conf b/wikijs.subdomain.conf new file mode 100644 index 0000000..705edec --- /dev/null +++ b/wikijs.subdomain.conf @@ -0,0 +1,30 @@ +## Version 2021/05/18 +# make sure that your dns has a cname set for wikijs +# if wikijs is running in bridge mode and the container is named "wikijs", the below config should work as is +# if not, replace the line "set $upstream_app wikijs;" with "set $upstream_app ;" +# or "set $upstream_app ;" for host mode, HOSTIP being the IP address of wikijs +# in wikijs server settings, under network, fill in "Custom server access URLs" with your domain (ie. "https://wikijs.yourdomain.url:443") + + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name wikijs.*; + + include /config/nginx/ssl.conf; + + client_max_body_size 0; + + location / { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app wikijs; + set $upstream_port 3000; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + proxy_set_header Range $http_range; + proxy_set_header If-Range $http_if_range; + } +}