Skip to content

Instantly share code, notes, and snippets.

@Ale32bit
Last active November 27, 2022 21:56
Show Gist options
  • Select an option

  • Save Ale32bit/8d801504761970fabf1d0f5e0d717f14 to your computer and use it in GitHub Desktop.

Select an option

Save Ale32bit/8d801504761970fabf1d0f5e0d717f14 to your computer and use it in GitHub Desktop.
DevBin reverse proxy config for NGINX
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