You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make a subdomain (e.g., staging) only accessible from internal MIT networks, you can restrict access at the nginx level using IP whitelisting by uncommenting and configuring the IP restriction directives.
440
443
441
-
**Note:** The webhook endpoint (`/api/deploy`) uses secret-based authentication and does not have IP restrictions. This section applies to frontend and backend API access only.
444
+
**Note:** The webhook endpoints (`/api/deploy-website` and `/api/deploy-api`) use secret-based authentication and do not have IP restrictions. This section applies to frontend and backend API access only.
442
445
443
446
### Quick Setup for Staging Instance
444
447
@@ -599,7 +602,7 @@ server {
599
602
}
600
603
```
601
604
602
-
**Important:** The webhook endpoint (`/api/deploy`) should **NOT** have IP restrictions enabled, as it uses secret-based authentication and needs to be accessible from GitHub Actions IPs (which change frequently).
605
+
**Important:** The webhook endpoints (`/api/deploy-website` and `/api/deploy-api`) should **NOT** have IP restrictions enabled, as they use secret-based authentication and need to be accessible from GitHub Actions IPs (which change frequently).
603
606
604
607
### Implementation Steps
605
608
@@ -679,6 +682,6 @@ location / {
679
682
-**Error Response:** Users outside MIT networks will see a 403 Forbidden error when restrictions are enabled
680
683
-**VPN Access:** VPN connections to MIT networks will be treated as internal if they use MIT IP ranges
681
684
-**Testing:** Test thoroughly from both internal and external networks before deploying restrictions
682
-
-**Webhook Endpoint:** The `/api/deploy` endpoint does **NOT** use IP restrictions. It relies on secret-based authentication (`X-Webhook-Secret` header) for security. This allows GitHub Actions to trigger deployments from any IP address while maintaining strong security through the webhook secret. **Do not enable IP restrictions on the webhook endpoint.**
685
+
-**Webhook Endpoints:** The `/api/deploy-website` (website) and `/api/deploy-api` (API) endpoints do **NOT** use IP restrictions. They rely on secret-based authentication (`X-Webhook-Secret` header) for security. This allows GitHub Actions to trigger deployments from any IP address while maintaining strong security through the webhook secret. **Do not enable IP restrictions on the webhook endpoints.**
683
686
684
687
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
0 commit comments