Last active
November 27, 2022 21:56
-
-
Save Ale32bit/8d801504761970fabf1d0f5e0d717f14 to your computer and use it in GitHub Desktop.
DevBin reverse proxy config for NGINX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| server_name devbin.dev www.devbin.dev d.devbin.dev; | |
| client_max_body_size 10M; | |
| location / { | |
| proxy_pass http://127.0.0.1:3003; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| } | |
| location /metrics { | |
| auth_basic "Prometheus Zone"; | |
| auth_basic_user_file /etc/apache2/.htpasswd; | |
| proxy_pass http://127.0.0.1:3003; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| } | |
| error_page 500 502 503 504 /50x.html; | |
| location = /50x.html { | |
| root /usr/share/nginx/html; | |
| internal; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment