This commit is contained in:
zino
2025-08-14 12:50:10 +02:00
parent 162469c797
commit 5d173752ae
4 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name metrics.registry.zinomedia.de;
access_log off;
error_log /var/log/nginx/error.log error;
# SSL Certificate Configuration
ssl_certificate /etc/letsencrypt/live/metrics.registry.zinomedia.de/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/metrics.registry.zinomedia.de/privkey.pem;
include "snippets/ssl-optimizations.conf";
# Password protect
auth_basic "Protected Area";
auth_basic_user_file /usr/share/nginx/html/metrics.registry.zinomedia.de/.htpasswd;
location / {
resolver 127.0.0.11;
set $upstream "http://registry:5001";
proxy_pass $upstream;
proxy_set_header Host $http_host; # required for docker client's sake
proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 900;
}
}
server {
listen 80;
listen [::]:80;
server_name metrics.registry.zinomedia.de;
return 301 https://$host$request_uri;
}

View File

@@ -0,0 +1 @@
zino:$apr1$XBzEVqBi$9SNhwAwBS2PJ47coYKoRH/