# TGICS — https://tgics.cttr.in # After DNS points to this host, run: # sudo certbot --nginx -d tgics.cttr.in server { listen 80; server_name tgics.cttr.in; root /var/www/tgics/frontend/dist; index index.html; gzip on; gzip_types text/plain text/css application/javascript application/json image/svg+xml; gzip_min_length 256; client_max_body_size 6m; location /api/ { proxy_pass http://127.0.0.1:3050; proxy_http_version 1.1; 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 /health { proxy_pass http://127.0.0.1:3050/health; proxy_http_version 1.1; proxy_set_header Host $host; } location / { try_files $uri $uri/ /index.html; } }