mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
update sniproxy
This commit is contained in:
parent
e77023d376
commit
e4a756495f
30
sniproxy/data/etc/sniproxy.conf
Normal file
30
sniproxy/data/etc/sniproxy.conf
Normal 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 {
|
||||
.* *
|
||||
}
|
0
sniproxy/data/log/.gitkeep
Normal file
0
sniproxy/data/log/.gitkeep
Normal 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 *
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user