From 6218a1cd2622501dce78557503ee57ff443e18ff Mon Sep 17 00:00:00 2001 From: Noah Danros Date: Sat, 6 Aug 2022 01:38:50 +0200 Subject: [PATCH 1/6] Proxy conf for leantime Proxy configuration for the project management tool Leantime. https://leantime.io --- leantime.conf | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 leantime.conf diff --git a/leantime.conf b/leantime.conf new file mode 100644 index 0000000..2d1c845 --- /dev/null +++ b/leantime.conf @@ -0,0 +1,40 @@ +## Version 2022/08/06 + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name leantime.*; + + include /config/nginx/ssl.conf; + + client_max_body_size 20M; + + # 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; + include /config/nginx/resolver.conf; + set $upstream_app leantime; + set $upstream_port 80; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + } + +} From 999629a215bc07969dce61e9bba5878ae6f1f753 Mon Sep 17 00:00:00 2001 From: Noah Danros Date: Sat, 6 Aug 2022 01:43:21 +0200 Subject: [PATCH 2/6] Rename leantime.conf to leantime.subdomain.conf.sample --- leantime.conf => leantime.subdomain.conf.sample | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename leantime.conf => leantime.subdomain.conf.sample (100%) diff --git a/leantime.conf b/leantime.subdomain.conf.sample similarity index 100% rename from leantime.conf rename to leantime.subdomain.conf.sample From 2e91c6344a3b13894b18d08b5b0db3dbe2c71608 Mon Sep 17 00:00:00 2001 From: Noah Danros Date: Thu, 12 Jan 2023 19:18:00 +0100 Subject: [PATCH 3/6] added info about cname --- leantime.subdomain.conf.sample | 1 + 1 file changed, 1 insertion(+) diff --git a/leantime.subdomain.conf.sample b/leantime.subdomain.conf.sample index 2d1c845..fe89035 100644 --- a/leantime.subdomain.conf.sample +++ b/leantime.subdomain.conf.sample @@ -1,4 +1,5 @@ ## Version 2022/08/06 +# make sure that your dns has a cname set for leantime and that your leantime container is not using a base url server { listen 443 ssl; From ddda0cd92c4115ffa0846321a7bbd709bbc4c3a0 Mon Sep 17 00:00:00 2001 From: Noah Danros Date: Sun, 19 Feb 2023 09:50:15 +0100 Subject: [PATCH 4/6] Update leantime.subdomain.conf.sample Added required info about container name and dns cname --- leantime.subdomain.conf.sample | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/leantime.subdomain.conf.sample b/leantime.subdomain.conf.sample index fe89035..daddbd3 100644 --- a/leantime.subdomain.conf.sample +++ b/leantime.subdomain.conf.sample @@ -1,5 +1,6 @@ -## Version 2022/08/06 -# make sure that your dns has a cname set for leantime and that your leantime container is not using a base url +## Version 2023/02/19 +# make sure that your leantime container is named leantime +# make sure that your dns has a cname set for leantime server { listen 443 ssl; From d55efbb46087059fa3d2f3e44c239f30066f162a Mon Sep 17 00:00:00 2001 From: Noah Danros Date: Sun, 19 Feb 2023 16:35:27 +0100 Subject: [PATCH 5/6] Update leantime.subdomain.conf.sample Update of consistency for comments Co-authored-by: Eric Nemchik --- leantime.subdomain.conf.sample | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/leantime.subdomain.conf.sample b/leantime.subdomain.conf.sample index daddbd3..c290717 100644 --- a/leantime.subdomain.conf.sample +++ b/leantime.subdomain.conf.sample @@ -10,14 +10,17 @@ server { include /config/nginx/ssl.conf; - client_max_body_size 20M; + client_max_body_size 0; - # enable for ldap auth, fill in ldap details in ldap.conf - #include /config/nginx/ldap.conf; + # enable for ldap auth (requires ldap-location.conf in the location block) + #include /config/nginx/ldap-server.conf; - # enable for Authelia + # enable for Authelia (requires authelia-location.conf in the location block) #include /config/nginx/authelia-server.conf; + # enable for Authentik (requires authentik-location.conf in the location block) + #include /config/nginx/authentik-server.conf; + location / { # enable the next two lines for http auth #auth_basic "Restricted"; From 79fb027718075373815971ddae57ddcfde90a872 Mon Sep 17 00:00:00 2001 From: Noah Danros Date: Sun, 19 Feb 2023 17:26:12 +0100 Subject: [PATCH 6/6] Update leantime.subdomain.conf.sample done Co-authored-by: Eric Nemchik --- leantime.subdomain.conf.sample | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/leantime.subdomain.conf.sample b/leantime.subdomain.conf.sample index c290717..a019a5e 100644 --- a/leantime.subdomain.conf.sample +++ b/leantime.subdomain.conf.sample @@ -26,13 +26,15 @@ server { #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 ldap auth (requires ldap-server.conf in the server block) + #include /config/nginx/ldap-location.conf; - # enable for Authelia + # enable for Authelia (requires authelia-server.conf in the server block) #include /config/nginx/authelia-location.conf; + # enable for Authentik (requires authentik-server.conf in the server block) + #include /config/nginx/authentik-location.conf; + include /config/nginx/proxy.conf; include /config/nginx/resolver.conf; set $upstream_app leantime;