From c01da08dc04aa2fe39f19b0566b88ebb6382f78a Mon Sep 17 00:00:00 2001 From: TheLazyFox <35723598+the-lazy-fox@users.noreply.github.com> Date: Sat, 17 Apr 2021 21:41:25 +0200 Subject: [PATCH 1/3] Create commento.subdomain.conf.sample --- commento.subdomain.conf.sample | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 commento.subdomain.conf.sample diff --git a/commento.subdomain.conf.sample b/commento.subdomain.conf.sample new file mode 100644 index 0000000..8cde688 --- /dev/null +++ b/commento.subdomain.conf.sample @@ -0,0 +1,40 @@ +## Version 2021/04/17 +# make sure that your dns has a cname set for commento and that your commento config is not using a subdirectory. + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name commento.*; + + include /config/nginx/ssl.conf; + + client_max_body_size 0; + + #enable for ldap auth, fill in ldap details in ldap.conf + #include /config/nginx/ldap.conf; + + # enable for Authelia + #include /config/nginx/authelia-server.conf; + + location / { + #enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + #enable the next two lines for ldap auth + #auth_request /auth; + #error_page 401 =200 /ldaplogin; + + # enable for Authelia + #include /config/nginx/authelia-location.conf; + + include /config/nginx/proxy.conf; + resolver 127.0.0.11 valid=30s; + set $upstream_app commento; + set $upstream_port 8080; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + } +} From 225f47dab7cc59472afd83d8952485b1b5c833d7 Mon Sep 17 00:00:00 2001 From: TheLazyFox <35723598+the-lazy-fox@users.noreply.github.com> Date: Tue, 25 May 2021 09:25:39 +0200 Subject: [PATCH 2/3] Update commento.subdomain.conf.sample --- commento.subdomain.conf.sample | 1 + 1 file changed, 1 insertion(+) diff --git a/commento.subdomain.conf.sample b/commento.subdomain.conf.sample index 8cde688..cd7f973 100644 --- a/commento.subdomain.conf.sample +++ b/commento.subdomain.conf.sample @@ -30,6 +30,7 @@ server { #include /config/nginx/authelia-location.conf; include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; resolver 127.0.0.11 valid=30s; set $upstream_app commento; set $upstream_port 8080; From e7bd73397ac65a4f9e768647a6a4fc90915b9597 Mon Sep 17 00:00:00 2001 From: TheLazyFox <35723598+the-lazy-fox@users.noreply.github.com> Date: Tue, 25 May 2021 09:40:14 +0200 Subject: [PATCH 3/3] Update commento.subdomain.conf.sample --- commento.subdomain.conf.sample | 1 - 1 file changed, 1 deletion(-) diff --git a/commento.subdomain.conf.sample b/commento.subdomain.conf.sample index cd7f973..2e61b8f 100644 --- a/commento.subdomain.conf.sample +++ b/commento.subdomain.conf.sample @@ -31,7 +31,6 @@ server { include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; - resolver 127.0.0.11 valid=30s; set $upstream_app commento; set $upstream_port 8080; set $upstream_proto http;