mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-08-21 22:03:39 -07:00
add wikijs conf
This commit is contained in:
parent
41f69e5288
commit
e8765b285b
1 changed files with 30 additions and 0 deletions
30
wikijs.subdomain.conf
Normal file
30
wikijs.subdomain.conf
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue