Add registry.lunarfront.tech: DNS-only subdomain with Let's Encrypt cert, no CF upload limit

This commit is contained in:
Ryan Moon
2026-03-31 19:14:03 -05:00
parent c280fb8cbe
commit 1ce49a7ed3
7 changed files with 96 additions and 8 deletions

View File

@@ -0,0 +1,26 @@
server {
listen 80;
server_name {{ gitea_registry_domain }};
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name {{ gitea_registry_domain }};
ssl_certificate /etc/letsencrypt/live/{{ gitea_registry_domain }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ gitea_registry_domain }}/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
client_max_body_size 0;
location / {
proxy_pass http://127.0.0.1:{{ gitea_http_port }};
proxy_set_header Host $host;
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;
}
}