37 lines
821 B
Plaintext
37 lines
821 B
Plaintext
# 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;
|
|
|
|
}
|
|
}
|