From a86698c299402e06f45cc293cf565489362dbebe Mon Sep 17 00:00:00 2001 From: owine Date: Thu, 20 Feb 2025 11:34:38 -0600 Subject: [PATCH 1/2] Add barassistant.subdomain.conf.sample --- barassistant.subdomain.conf.sample | 82 ++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 barassistant.subdomain.conf.sample diff --git a/barassistant.subdomain.conf.sample b/barassistant.subdomain.conf.sample new file mode 100644 index 00000000..87e8474e --- /dev/null +++ b/barassistant.subdomain.conf.sample @@ -0,0 +1,82 @@ +## Version 2025/02/19 +# make sure that your meilisearch container is named meilisearch +# make sure that your barassistant container is named barassistant +# make sure that your salt-rim container is named salt-rim +# make sure that your dns has a cname set for barassistant + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name barassistant.*; + + include /config/nginx/ssl.conf; + + client_max_body_size 100M; + + # enable for ldap auth (requires ldap-location.conf in the location block) + #include /config/nginx/ldap-server.conf; + + # 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"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable for ldap auth (requires ldap-server.conf in the server block) + #include /config/nginx/ldap-location.conf; + + # 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; + proxy_pass http://salt-rim:8080/; + + } + + location /bar/ { + # enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable for ldap auth (requires ldap-server.conf in the server block) + #include /config/nginx/ldap-location.conf; + + # 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; + proxy_pass http://barassistant:8080/; + } + location /search/ { + # enable the next two lines for http auth + #auth_basic "Restricted"; + #auth_basic_user_file /config/nginx/.htpasswd; + + # enable for ldap auth (requires ldap-server.conf in the server block) + #include /config/nginx/ldap-location.conf; + + # 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; + proxy_pass http://meilisearch:7700/; + } +} From 28c6293df41ddf0423c658ce212d9cb2c38d4271 Mon Sep 17 00:00:00 2001 From: owine Date: Thu, 20 Feb 2025 14:31:28 -0600 Subject: [PATCH 2/2] client_max_body_size 0 --- barassistant.subdomain.conf.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/barassistant.subdomain.conf.sample b/barassistant.subdomain.conf.sample index 87e8474e..59293f79 100644 --- a/barassistant.subdomain.conf.sample +++ b/barassistant.subdomain.conf.sample @@ -12,7 +12,7 @@ server { include /config/nginx/ssl.conf; - client_max_body_size 100M; + client_max_body_size 0; # enable for ldap auth (requires ldap-location.conf in the location block) #include /config/nginx/ldap-server.conf;