1
0
Fork 0
forked from exozyme/nginx

Clean up configs and remove unneeded 80 blocks

This commit is contained in:
Anthony Wang 2021-11-24 21:12:17 -06:00
parent d7d9ed7d5d
commit 995a082c88
Signed by untrusted user: a
GPG key ID: BC96B00AEC5F2D76
6 changed files with 3 additions and 36 deletions

View file

@ -1,7 +1,3 @@
upstream vnc_proxy {
server localhost:6080;
}
server {
listen 80 default_server;
listen [::]:80 default_server;

View file

@ -13,16 +13,6 @@ upstream streaming {
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=CACHE:10m inactive=7d max_size=1g;
server {
listen 80;
listen [::]:80;
server_name social.exozy.me;
root /var/lib/mastodon/public;
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

View file

@ -2,15 +2,6 @@ upstream php-handler {
server unix:/run/nextcloud/nextcloud.sock;
}
server {
listen 80;
listen [::]:80;
server_name cloud.exozy.me;
# Enforce HTTPS
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;

View file

@ -3,16 +3,6 @@
# STANDARD HTTP MODULES: Core, Proxy, Rewrite, Access, Gzip, Headers, HTTP/2, Log, Real IP, SSL, Thread Pool, Upstream, AIO Multithreading.
# THIRD PARTY MODULES: None.
server {
listen 80;
listen [::]:80;
server_name tube.exozy.me;
location / {
return 301 https://$host$request_uri;
}
}
upstream tube_backend {
server localhost:9000;
}

View file

@ -1,5 +1,5 @@
server {
listen localhost:10080;
listen localhost:10080 http2;
server_name qal6mygptf757jiv46m6x2g23v3dyxgrrrv3dbxpiyjj44tsd2u3l3yd.onion;
root /srv/http/exozy.me;

View file

@ -1,6 +1,6 @@
server {
listen 80;
listen [::]:80;
listen 80 http2;
listen [::]:80 http2;
server_name 192.168.1.13;
root /srv/http;