alfazema.club-etc

commit ff9c73825fbbf881b0b7e3a9df46bb6586f39fe3

Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>

Update with latest production configs

 nginx/alfazema.club.conf | 10 ++++++++++
 nginx/midia.alfazema.club.conf | 4 ++++


diff --git a/nginx/alfazema.club.conf b/nginx/alfazema.club.conf
index 860672ee83c34d3d325b7d857ce9c302ffcdab0d..9318b1002772b887ff92b738a5ccfd3e371d7e44 100644
--- a/nginx/alfazema.club.conf
+++ b/nginx/alfazema.club.conf
@@ -23,6 +23,7 @@   location ^~ /.well-known {
 	  root /var/www;
   }
 
+  #location /.well-known/acme-challenge/ { allow all; }
   location / { return 301 https://$host$request_uri; }
 }
 
@@ -34,6 +35,7 @@
   ssl_protocols TLSv1.2 TLSv1.3;
   ssl_ciphers HIGH:!MEDIUM:!LOW:!aNULL:!NULL:!SHA;
   ssl_prefer_server_ciphers on;
+  #ssl_session_cache shared:SSL:10m;
 
   # Uncomment these lines once you acquire a certificate:
   ssl_certificate     /etc/ssl/uacme/alfazema.club/cert.pem;
@@ -112,6 +114,14 @@     proxy_set_header Upgrade $http_upgrade;
     proxy_set_header Connection $connection_upgrade;
 
     tcp_nodelay on;
+  }
+
+  location /metrics {
+	  proxy_pass http://localhost:9100;
+	  proxy_redirect off;
+	  proxy_set_header X-Real-IP $remote_addr;
+	  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+	  proxy_set_header X-Forwarded-Proto $scheme;
   }
 
   error_page 500 501 502 503 504 /500.html;




diff --git a/nginx/midia.alfazema.club.conf b/nginx/midia.alfazema.club.conf
index 46cec21527aafc27fe0c4d93ee4d89c5a2c7a043..4283570b84b5d810f2d5fa2e036e9ed193546668 100644
--- a/nginx/midia.alfazema.club.conf
+++ b/nginx/midia.alfazema.club.conf
@@ -25,6 +25,10 @@
 	ssl_certificate     /etc/ssl/uacme/midia.alfazema.club/cert.pem;
 	ssl_certificate_key /etc/ssl/uacme/private/midia.alfazema.club/key.pem;
 
+	location ^~ /.well-known {
+		root /var/www;
+	}
+
 	location /alfazema-stash/ {
 		proxy_cache mastodon_media;
 		proxy_cache_revalidate on;