2020-11-05 15:35:56 +00:00
|
|
|
server {
|
2020-12-11 16:47:31 +00:00
|
|
|
listen ${SNIKKET_TWEAK_HTTP_PORT};
|
|
|
|
listen [::]:${SNIKKET_TWEAK_HTTP_PORT};
|
2020-11-05 15:35:56 +00:00
|
|
|
|
2020-12-11 16:47:31 +00:00
|
|
|
server_name ${SNIKKET_DOMAIN};
|
|
|
|
server_name groups.${SNIKKET_DOMAIN};
|
2021-01-22 23:00:18 +00:00
|
|
|
server_name share.${SNIKKET_DOMAIN};
|
|
|
|
|
2021-01-30 10:48:12 +00:00
|
|
|
location /.well-known/acme-challenge {
|
|
|
|
alias /var/www/html/.well-known/acme-challenge;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
2021-01-22 23:00:18 +00:00
|
|
|
}
|
2021-02-02 11:45:43 +00:00
|
|
|
|
|
|
|
# Fail requests to unknown domains
|
|
|
|
server {
|
|
|
|
listen ${SNIKKET_TWEAK_HTTP_PORT};
|
|
|
|
listen [::]:${SNIKKET_TWEAK_HTTP_PORT};
|
|
|
|
|
|
|
|
error_page 404 /_errors/404_site.html;
|
|
|
|
|
|
|
|
return 404;
|
|
|
|
}
|