diff --git a/sniproxy/data/etc/sniproxy.conf b/sniproxy/data/etc/sniproxy.conf new file mode 100644 index 0000000..f6c83c7 --- /dev/null +++ b/sniproxy/data/etc/sniproxy.conf @@ -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 { + .* * +} diff --git a/sniproxy/data/log/.gitkeep b/sniproxy/data/log/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/sniproxy/data/sniproxy.conf b/sniproxy/data/sniproxy.conf deleted file mode 100644 index 678305d..0000000 --- a/sniproxy/data/sniproxy.conf +++ /dev/null @@ -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 * -} diff --git a/sniproxy/docker-compose.yml b/sniproxy/docker-compose.yml index ba49c52..0d2a7c5 100644 --- a/sniproxy/docker-compose.yml +++ b/sniproxy/docker-compose.yml @@ -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