mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
add sniproxy
This commit is contained in:
parent
ef673cc3ca
commit
3c342098bd
@ -267,6 +267,7 @@ A collection of delicious docker recipes.
|
||||
- [x] shadowsocks-libev :+1:
|
||||
- [x] shadowsocks-arm
|
||||
- [x] shadowsocks-libev-arm :+1:
|
||||
- [x] sniproxy
|
||||
- [x] spiped
|
||||
- [x] squid
|
||||
- [x] stunnel
|
||||
|
13
sniproxy/Dockerfile
Normal file
13
sniproxy/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
#
|
||||
# Dockerfile for sniproxy
|
||||
#
|
||||
|
||||
FROM alpine:3
|
||||
MAINTAINER EasyPi Software Foundation
|
||||
|
||||
RUN apk add --no-cache sniproxy
|
||||
|
||||
EXPOSE 80 443
|
||||
|
||||
ENTRYPOINT ["/usr/sbin/sniproxy"]
|
||||
CMD ["-f", "-n", "65536", "-c", "/etc/sniproxy/sniproxy.conf"]
|
7
sniproxy/README.md
Normal file
7
sniproxy/README.md
Normal file
@ -0,0 +1,7 @@
|
||||
sniproxy
|
||||
========
|
||||
|
||||
[sniproxy][1] - Proxies incoming HTTP and TLS connections based on the hostname
|
||||
contained in the initial request of the TCP session.
|
||||
|
||||
[1]: https://github.com/dlundquist/sniproxy
|
25
sniproxy/data/sniproxy.conf
Normal file
25
sniproxy/data/sniproxy.conf
Normal file
@ -0,0 +1,25 @@
|
||||
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 *
|
||||
}
|
10
sniproxy/docker-compose.yml
Normal file
10
sniproxy/docker-compose.yml
Normal file
@ -0,0 +1,10 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
sniproxy:
|
||||
image: vimagick/sniproxy
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ./data:/etc/sniproxy
|
||||
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user