1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-21 01:27:01 +02:00

update sniproxy

This commit is contained in:
kev 2023-06-15 16:43:43 +08:00
parent e77023d376
commit e4a756495f
4 changed files with 32 additions and 26 deletions

View File

@ -0,0 +1,30 @@
user sniproxy
pidfile /var/run/sniproxy/sniproxy.pid
resolver {
nameserver 8.8.8.8
mode ipv4_only
}
error_log {
filename /var/log/sniproxy/error.log
priority notice
}
listener 0.0.0.0 80 {
proto http
access_log {
filename /var/log/sniproxy/access.log
}
}
listener 0.0.0.0 443 {
proto tls
access_log {
filename /var/log/sniproxy/access.log
}
}
table {
.* *
}

View File

View File

@ -1,25 +0,0 @@
user sniproxy
pidfile /var/run/sniproxy/sniproxy.pid
error_log {
filename /var/log/sniproxy/error.log
priority notice
}
listener 0.0.0.0 80 {
proto http
access_log {
filename /var/log/sniproxy/access.log
}
}
listener 0.0.0.0 443 {
proto tls
access_log {
filename /var/log/sniproxy/access.log
}
}
table {
mydomain\.com *
}

View File

@ -6,5 +6,6 @@ services:
- "80:80"
- "443:443"
volumes:
- ./data:/etc/sniproxy
- ./data/etc:/etc/sniproxy
- ./data/log:/var/log/sniproxy
restart: unless-stopped