mirror of
https://github.com/jakejarvis/mastodon-utils.git
synced 2025-04-26 07:55: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
|
# don't respond to direct IP address requests
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
listen [::]:80 default_server;
|
listen [::]:80 default_server;
|
||||||
|
@ -19,17 +19,11 @@ server {
|
|||||||
|
|
||||||
server_name fediverse.jarv.is;
|
server_name fediverse.jarv.is;
|
||||||
|
|
||||||
root /home/mastodon/live/public;
|
if ($host = fediverse.jarv.is) {
|
||||||
|
|
||||||
location /.well-known/acme-challenge/ {
|
|
||||||
allow all;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
}
|
} # managed by Certbot
|
||||||
|
|
||||||
access_log off;
|
return 404; # managed by Certbot
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
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_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
|
gzip_min_length 256; # jake: added
|
||||||
|
|
||||||
# jake: added
|
|
||||||
access_log off;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri @proxy;
|
try_files $uri @proxy;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user