25 lines
697 B
Nginx Configuration File
25 lines
697 B
Nginx Configuration File
server {
|
|
server_name git.supernets.org;
|
|
location / {
|
|
client_max_body_size 4096M;
|
|
proxy_pass http://10.4.20.420:30443;
|
|
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;
|
|
}
|