add dokuwiki
This commit is contained in:
36
swag-config/nginx/proxy-confs/dokuwiki.subdomain.conf
Normal file
36
swag-config/nginx/proxy-confs/dokuwiki.subdomain.conf
Normal 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;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user