add wikijs conf

This commit is contained in:
parksj10 2023-02-17 13:18:18 -08:00 committed by GitHub
commit e8765b285b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

30
wikijs.subdomain.conf Normal file
View file

@ -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 <containername>;"
# or "set $upstream_app <HOSTIP>;" 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;
}
}