add dokuwiki

This commit is contained in:
2020-10-06 20:00:37 -05:00
parent 6e5bf0745e
commit c1d16bdeec
2 changed files with 55 additions and 3 deletions

View File

@@ -0,0 +1,36 @@
# First complete the setup by appending install.php to URL.
# Make sure that your dns has a cname set for dokuwiki
server {
listen 80;
listen [::]:80;
server_name wiki.gminus2.duckdns.org;
location / {
return 301 https://$server_name$request_uri;
}
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name wiki.gminus2.duckdns.org;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
#enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;
include /config/nginx/proxy.conf;
set $upstream_app dokuwiki;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}