forked from retoor/devplacepy
ticket #81 attempt 1
This commit is contained in:
@@ -209,3 +209,25 @@ server {
|
||||
${NGINX_CACHE_CONFIG}
|
||||
}
|
||||
}
|
||||
|
||||
# DevTunnel reverse proxy - routes *.tunnel.devplace.net through SSH tunnels.
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name ~^(?<tunnel_subdomain>[^.]+)\.tunnel\.devplace\.net$;
|
||||
|
||||
client_max_body_size ${NGINX_MAX_BODY_SIZE};
|
||||
|
||||
gzip on;
|
||||
gzip_types text/plain text/css text/javascript application/javascript application/json image/svg+xml;
|
||||
gzip_min_length 1000;
|
||||
gzip_vary on;
|
||||
gzip_proxied any;
|
||||
|
||||
include /etc/nginx/tunnel.d/*.conf;
|
||||
|
||||
location / {
|
||||
return 502;
|
||||
add_header Content-Type text/plain;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user