Skip to content

Commit b12a649

Browse files
committed
Make nginx configuration universal for all hosting services
- Replace specific *.serveo.net with universal server_name _ - Now works with localhost, ngrok, serveo, custom domains, and any tunneling service - Remove service-specific limitations from configuration - Update both fixed config and README documentation
1 parent 635780e commit b12a649

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ map $http_upgrade $connection_upgrade {
262262
263263
server {
264264
listen 80;
265-
server_name your-domain.com; # Replace with your domain
265+
server_name _; # Accept all hostnames (localhost, ngrok, custom domains, etc.)
266266
267267
# Forward client IP and protocol
268268
proxy_set_header X-Real-IP $remote_addr;

fixed_nginx_config.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ map $http_upgrade $connection_upgrade {
2424
# Main server block listening on HTTP
2525
server {
2626
listen 80; # Nginx listens on port 80 locally
27-
server_name localhost *.serveo.net _; # Dynamic - works with any serveo URL and localhost
27+
server_name _; # Accept all hostnames (localhost, ngrok, custom domains, etc.)
2828

2929
# Basic Security Headers
3030
add_header X-Frame-Options "SAMEORIGIN";

0 commit comments

Comments
 (0)