version: '3'
services:
webdav:
image: ghcr.io/hacdias/webdav
container_name: webdav
restart: always
ports:
- "10001:6065"
volumes:
- /storage/docker_data/webdav/config.yml:/config.yml:ro
- /storage/docker_data/webdav/data:/data
command: -c /config.yml
Bridge:
[td]Name[/td]
[td]Stack LT[/td]
[td]Driver[/td]
[td]Attachable[/td]
[td]IPAM Driver[/td]
[td]IPV4 IPAM Subnet[/td]
[td]IPV4 IPAM Gateway[/td]
webdav_default
webdav
bridge
false
default
172.19.0.0/16
172.19.0.1
location / {
proxy_pass http://127.0.0.1:10001;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
}
用 nginx 进行反向代理的时候,我进入容器的后台发现2024-10-18T03:01:09.536Z INFO login attempt {"username": "aaaa", "remote_address": "172.19.0.1:57548"}
2024-10-18T03:01:09.536Z INFO user authorized {"username": "aaaa"}
2024-10-18T03:02:13.219Z INFO login attempt {"username": "aaaa", "remote_address": "172.19.0.1:56084"}