1
mirror of https://github.com/jakejarvis/mastodon-utils.git synced 2025-04-26 03:25:22 -04:00

move nginx configs

This commit is contained in:
Jake Jarvis 2022-12-07 21:57:54 -05:00
parent 2cc3caf679
commit d36fa62b86
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
2 changed files with 3 additions and 13 deletions

View File

@ -1,5 +1,4 @@
# don't respond to direct IP address requests
server {
listen 80 default_server;
listen [::]:80 default_server;

View File

@ -19,17 +19,11 @@ server {
server_name fediverse.jarv.is;
root /home/mastodon/live/public;
location /.well-known/acme-challenge/ {
allow all;
}
location / {
if ($host = fediverse.jarv.is) {
return 301 https://$host$request_uri;
}
} # managed by Certbot
access_log off;
return 404; # managed by Certbot
}
server {
@ -64,9 +58,6 @@ server {
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml image/x-icon;
gzip_min_length 256; # jake: added
# jake: added
access_log off;
location / {
try_files $uri @proxy;
}