Browse Source

update nginx configs

master
Adrian Malacoda 9 months ago
parent
commit
cf8d371f00
  1. 1
      .gitignore
  2. 3
      nginx/nginx.conf
  3. 26
      nginx/sites-available/archives.glitchcity.conf
  4. 28
      nginx/sites-available/cadvisor.monarch-pass.net.conf
  5. 2
      nginx/sites-available/default.dpkg-dist
  6. 5
      nginx/sites-available/forge.monarch-pass.net.conf
  7. 6
      nginx/sites-available/glitchcity.conf
  8. 5
      nginx/sites-available/optimecapsule.conf
  9. 4
      nginx/sites-available/phpmyadmin.conf
  10. 28
      nginx/sites-available/prometheus.monarch-pass.net.conf
  11. 32
      nginx/sites-available/video.monarch-pass.net.conf

1
.gitignore

@ -0,0 +1 @@
nginx/snippets/restricted.conf

3
nginx/nginx.conf

@ -55,6 +55,9 @@ http {
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
# Request Limit
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
##
# Virtual Host Configs
##

26
nginx/sites-available/archives.glitchcity.conf

@ -0,0 +1,26 @@
server {
listen 80;
listen [::]:80;
server_name archives.glitchcity.info www.archives.glitchcity.info;
return 301 https://$host$request_uri;
}
server {
# SSL configuration
#
listen 443 ssl;
listen [::]:443 ssl;
server_name archives.glitchcity.info www.archives.glitchcity.info;
access_log /var/log/nginx/archives.glitchcity.info/access.log;
error_log /var/log/nginx/archives.glitchcity.info/error.log;
root /var/www/html/gclarchives;
index index.html;
charset UTF-8;
location / {
try_files $uri $uri/ =404;
}
}

28
nginx/sites-available/cadvisor.monarch-pass.net.conf

@ -0,0 +1,28 @@
server {
listen 80;
listen [::]:80;
server_name cadvisor.monarch-pass.net;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
client_max_body_size 100G;
server_name cadvisor.monarch-pass.net;
access_log /var/log/nginx/cadvisor.monarch-pass.net/access.log;
error_log /var/log/nginx/cadvisor.monarch-pass.net/error.log;
location /.well-known/ {
root /var/www/html/;
try_files $uri $uri/ =404;
}
location / {
include snippets/restricted.conf;
proxy_pass http://127.0.0.1:8010/;
}
}

2
nginx/sites-available/default.dpkg-dist

@ -57,7 +57,7 @@ server {
# include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
# fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
# fastcgi_pass unix:/run/php/php7.3-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
#}

5
nginx/sites-available/forge.monarch-pass.net.conf

@ -21,7 +21,12 @@ server {
try_files $uri $uri/ =404;
}
location /free/ {
include snippets/restricted.conf;
}
location / {
# include snippets/restricted.conf;
proxy_pass http://127.0.0.1:8011/;
}
}

6
nginx/sites-available/glitchcity.conf

@ -3,12 +3,18 @@ server {
listen [::]:80;
server_name forums.glitchcity.info glitchcity.info www.glitchcity.info;
return 301 https://$host$request_uri;
deny 220.243.135.0/24;
deny 220.243.136.0/24;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
deny 220.243.135.0/24;
deny 220.243.136.0/24;
server_name forums.glitchcity.info glitchcity.info www.glitchcity.info;
client_max_body_size 100M;

5
nginx/sites-available/optimecapsule.conf

@ -20,6 +20,11 @@ server {
index index.html;
autoindex on;
location /.well-known/ {
root /var/www/html/;
try_files $uri $uri/ =404;
}
location / {
try_files $uri $uri/ =404;
}

4
nginx/sites-available/phpmyadmin.conf

@ -11,6 +11,10 @@ server {
server_name phpmyadmin.monarch-pass.net;
# include snippets/restricted.conf;
client_max_body_size 100G;
access_log /var/log/nginx/phpmyadmin.monarch-pass.net/access.log;
error_log /var/log/nginx/phpmyadmin.monarch-pass.net/error.log;

28
nginx/sites-available/prometheus.monarch-pass.net.conf

@ -0,0 +1,28 @@
server {
listen 80;
listen [::]:80;
server_name prometheus.monarch-pass.net;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
client_max_body_size 100G;
server_name prometheus.monarch-pass.net;
access_log /var/log/nginx/prometheus.monarch-pass.net/access.log;
error_log /var/log/nginx/prometheus.monarch-pass.net/error.log;
location /.well-known/ {
root /var/www/html/;
try_files $uri $uri/ =404;
}
location / {
include snippets/restricted.conf;
proxy_pass http://127.0.0.1:8015/;
}
}

32
nginx/sites-available/video.monarch-pass.net.conf

@ -0,0 +1,32 @@
server {
listen 80;
listen [::]:80;
server_name video.monarch-pass.net;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
client_max_body_size 100G;
server_name video.monarch-pass.net;
access_log /var/log/nginx/video.monarch-pass.net/access.log;
error_log /var/log/nginx/video.monarch-pass.net/error.log;
location /.well-known/acme-challenge/ {
root /var/www/html/;
try_files $uri $uri/ =404;
}
location / {
proxy_pass http://127.0.0.1:8013/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Date $http_x_date;
proxy_set_header Date $http_date;
}
}
Loading…
Cancel
Save