Hi,
I'm using Guacamole 1.3.0 with docker and nginx ssl proxy.
At page https://rdp.example.net/#/settings/postgresql/history all
users have the same remote host address "172.18.0.1". It is probably
from the docker network.
Is possible to have real user IP address at history page?
Thanks for help.
There is my docker-compose.yml file:
---------------------------------------------------------------------------
version: "3"
services:
init-guacamole-db:
image: guacamole/guacamole:latest
command: ["/bin/sh", "-c", "test -e /init/initdb.sql && echo 'init
file already exists' || /opt/guacamole/bin/initdb.sh --postgres >
/init/initdb.sql" ]
volumes:
- dbinit:/init
postgres:
image: postgres:13.1-alpine
restart: unless-stopped
volumes:
- dbinit:/docker-entrypoint-initdb.d
- dbdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${POSTGRES_USER:-guacdb}
POSTGRES_PASSWORD: secretPassword
depends_on:
- init-guacamole-db
guacd:
image: guacamole/guacd:1.3.0
restart: unless-stopped
volumes:
- /data:/data
guac:
image: guacamole/guacamole:1.3.0
restart: unless-stopped
ports:
- "8080:8080"
environment:
GUACD_HOSTNAME: guacd
POSTGRES_HOSTNAME: postgres
POSTGRES_DATABASE: ${POSTGRES_USER:-guacdb}
POSTGRES_USER: ${POSTGRES_USER:-guacdb}
POSTGRES_PASSWORD: secretPassword
depends_on:
- postgres
- guacd
volumes:
dbinit:
driver: local
dbdata:
driver: local
data:
driver: local
---------------------------------------------------------------------------
and nginx vhost:
---------------------------------------------------------------------------
server {
server_name rdp.example.net ;
listen 443 ssl http2;
listen [::]:443 ssl http2;
location / {
proxy_pass http://127.0.0.1:8080/guacamole/;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forward-Proto http;
proxy_set_header X-Nginx-Proxy true;
}
---------------------------------------------------------------------------
--
S pozdravem
Ing. Martin Vancl
e-mail: [email protected]
web: www.vancl-it.cz
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]