Files
Project_Velocity/infrastructure/desineuron_ingress/velocity.desineuron.in.nginx.conf
2026-04-23 01:20:21 +05:30

38 lines
1.2 KiB
Plaintext

server {
listen 443 ssl http2;
server_name velocity.desineuron.in;
ssl_certificate /etc/letsencrypt/live/desineuron-infra/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/desineuron-infra/privkey.pem;
root /var/www/velocity.desineuron.in/current;
index index.html;
access_log /var/log/nginx/velocity.desineuron.in.access.log;
error_log /var/log/nginx/velocity.desineuron.in.error.log;
location /api/ {
proxy_pass http://127.0.0.1:8001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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;
}
location / {
try_files $uri $uri/ /index.html;
}
location = /hooks/gitea/project-velocity {
proxy_pass http://127.0.0.1:8788/hooks/gitea/project-velocity;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
}