perl_set $allow_http 'sub { return $ENV{"ALLOW_HTTP"}; }';
server { # simple reverse-proxy
- listen 8085;
- listen [::]:8085;
+ listen 9095;
+ listen [::]:9095;
server_name localhost;
if ($allow_http != true) {
return 444;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_pass http://localhost:2222;
+ proxy_pass http://localhost:3333;
}
}
server { # simple reverse-proxy
- listen 8185 ssl;
- listen [::]:8185 ssl;
+ listen 9195 ssl;
+ listen [::]:9195 ssl;
server_name localhost;
ssl_certificate /usr/src/app/cert/cert.crt;
ssl_certificate_key /usr/src/app/cert/key.crt;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_pass http://localhost:2222;
+ proxy_pass http://localhost:3333;
}
}
##
# gzip_buffers 16 8k;
# gzip_http_version 1.1;
# gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
-}
\ No newline at end of file
+}