2024-01-24 06:44:52 +00:00
|
|
|
server {
|
|
|
|
server_name git.supernets.org;
|
|
|
|
location / {
|
2024-02-14 19:11:07 +00:00
|
|
|
client_max_body_size 4096M;
|
2024-09-28 04:00:05 +00:00
|
|
|
proxy_pass http://10.4.20.420:30443;
|
2024-01-24 06:44:52 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
listen 443 ssl;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/git.supernets.org/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/git.supernets.org/privkey.pem;
|
|
|
|
}
|
|
|
|
server {
|
|
|
|
if ($host = git.supernets.org) {
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
|
|
|
|
|
|
|
listen 80;
|
|
|
|
server_name git.supernets.org;
|
|
|
|
return 404;
|
2024-09-28 04:00:05 +00:00
|
|
|
}
|