[+] update gateway
1. some refactor for nginx_config.py;
1.1. just tested
that ssl-app can correctly
show a remote_addr;
1.1.1 TODO,
figure out how to preserve this info
when doing proxy_pass
to ssl app; (hm, seems like no way);
2. exposed ssl-app port
at SSL_APP_PORTS endpoint;
This commit is contained in:
parent
d782ec7731
commit
ff045106fc
@ -459,6 +459,7 @@ server {
|
||||
|
||||
server {
|
||||
set $t1 $remote_addr;
|
||||
|
||||
if ($http_x_forwarded_for)
|
||||
{
|
||||
set $t1 $http_x_forwarded_for;
|
||||
|
||||
@ -35,6 +35,8 @@ services:
|
||||
- ./tmp/d1/:/app/tmp/d1/:ro
|
||||
- ./tmp/d1/letsencrypt:/etc/letsencrypt:rw
|
||||
restart: on-failure
|
||||
ports:
|
||||
- ${SSL_APP_PORTS:-"127.0.0.1:443"}:444
|
||||
networks:
|
||||
network:
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user