just submitted a PR to the default confs... leaving what worked for me hre anyways
## 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://wiki.yourdomain.url:443")
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name wiki.*;
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;
}
}