37 lines
1 KiB
Nginx Configuration File
37 lines
1 KiB
Nginx Configuration File
|
|
events { worker_connections 1024; }
|
||
|
|
|
||
|
|
http {
|
||
|
|
client_max_body_size 0;
|
||
|
|
|
||
|
|
# BLOCK 1: HTTPS (Port 443) - Für die 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 SSH-Tunnel
|
||
|
|
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;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|