mirror of
https://github.com/MAGICGrants/campaign-site.git
synced 2026-01-08 03:53:59 -05:00
32 lines
959 B
Nginx Configuration File
32 lines
959 B
Nginx Configuration File
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
limit_req_zone $binary_remote_addr zone=api:10m rate=2r/s;
|
|
|
|
server {
|
|
listen 80;
|
|
server_name donate.magicgrants.org;
|
|
|
|
location / {
|
|
proxy_pass http://magic-app: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;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
}
|
|
|
|
location /api {
|
|
proxy_pass http://magic-app:3000/api;
|
|
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;
|
|
proxy_set_header X-Forwarded-Host $host;
|
|
|
|
limit_req zone=api burst=5 nodelay;
|
|
}
|
|
}
|
|
} |