38 lines
1.1 KiB
Nginx Configuration File
38 lines
1.1 KiB
Nginx Configuration File
|
|
events { worker_connections 1024; }
|
||
|
|
|
||
|
|
http {
|
||
|
|
# Erlaubt das Hochladen großer Docker-Images ohne Limits
|
||
|
|
client_max_body_size 0;
|
||
|
|
|
||
|
|
# BLOCK 1: HTTPS (Port 443) - Für den verschlüsselten Docker-Login deiner Pipeline
|
||
|
|
server {
|
||
|
|
listen 443 ssl;
|
||
|
|
server_name localhost;
|
||
|
|
|
||
|
|
ssl_certificate /etc/nginx/ssl/nginx.crt;
|
||
|
|
ssl_certificate_key /etc/nginx/ssl/nginx.key;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
proxy_pass http://forgejo:3000;
|
||
|
|
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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
# BLOCK 2: HTTP (Port 80) - Für deinen bequemen SSH-Tunnel auf Port 3005
|
||
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name localhost;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
proxy_pass http://forgejo:3000;
|
||
|
|
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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|