add mastodon conf

This commit is contained in:
aptalca 2022-11-10 18:49:28 -05:00
parent 6daa03a1dd
commit 41059d54f8

View file

@ -0,0 +1,40 @@
## Version 2022/11/10
# make sure that your dns has a cname set for mastodon
# make sure you set `WEB_DOMAIN=mastodon.example.com` env var for the mastodon container
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name mastodon.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
# 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;
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;
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app mastodon;
set $upstream_port 80;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}