From 82e77079f2f5a166541519c638ad63bfa6dac7cf Mon Sep 17 00:00:00 2001 From: TheLazyFox <35723598+the-lazy-fox@users.noreply.github.com> Date: Wed, 14 Sep 2022 16:15:46 +0200 Subject: [PATCH] Create ntfy.subdomain.conf.sample Adding ntfy for subdomains --- ntfy.subdomain.conf.sample | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ntfy.subdomain.conf.sample diff --git a/ntfy.subdomain.conf.sample b/ntfy.subdomain.conf.sample new file mode 100644 index 0000000..fc6cb1e --- /dev/null +++ b/ntfy.subdomain.conf.sample @@ -0,0 +1,28 @@ +## Version 2022/13/09 +# make sure that your dns has a cname set for ntfy +# if ntfy is running in bridge mode and the container is named "ntfy", the below config should work as is +# if not, replace the line "set $upstream_app ntfy;" with "set $upstream_app ;" +# or "set $upstream_app ;" for host mode, HOSTIP being the IP address of ntfy + +server { + listen 443 ssl; + listen [::]:443 ssl; + + server_name ntfy.*; + + include /config/nginx/ssl.conf; + + client_max_body_size 0; + + location / { + include /config/nginx/proxy.conf; + include /config/nginx/resolver.conf; + set $upstream_app ntfy; + set $upstream_port 80; + set $upstream_proto http; + proxy_pass $upstream_proto://$upstream_app:$upstream_port; + + proxy_set_header Range $http_range; + proxy_set_header If-Range $http_if_range; + } +}