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:
parent
2cc3caf679
commit
d36fa62b86
@ -1,5 +1,4 @@
|
||||
# don't respond to direct IP address requests
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user