ss_whitelist V1.0.1

[update] 配置文件完善
pull/412/head
wulabing 2022-06-19 21:07:24 +08:00
parent e05be2133a
commit 8055cf26c7
No known key found for this signature in database
GPG Key ID: 213391AFDF73AE00
2 changed files with 6 additions and 8 deletions

View File

@ -115,15 +115,13 @@ http {
os.execute("/usr/local/openresty/nginx/sbin/nginx -s reload")
}
}
location /purge {
location = /purge {
auth_basic "";
auth_basic_user_file /etc/openresty/auth;
add_header Content-Type text/plain;
content_by_lua_block {
ngx.header.content_type = "text/plain;charset=UTF-8";
file = io.open("/etc/openresty/allow.list","w")
io.input(file)
io.output(file)
ngx.print("IP列表已被清空")
io.close(file)
os.execute("/usr/local/openresty/nginx/sbin/nginx -s reload")

View File

@ -17,11 +17,10 @@ services:
- 8388/udp
environment:
- METHOD=chacha20-ietf-poly1305
- PASSWORD=96166477-95b6-41a1-92c5-e33bce9694b0
# - SERVER_ADDR=0.0.0.0
# - SERVER_ADDR=::0 # no use for listen ipv6 (may be no env actually but in doc)
- DNS_ADDRS=2001:4860:4860::8888,2001:4860:4860::8844,8.8.8.8,1.1.1.1
- ARGS= -s ::0
- PASSWORD="replace with your password,Better to replace with UUID"
- DNS_ADDRS=8.8.8.8,1.1.1.1 # for ipv4
# - DNS_ADDRS=2001:4860:4860::8888,2001:4860:4860::8844 # for ipv6
# - ARGS= -s ::0 #for ipv6
restart: always
networks:
- backend
@ -45,6 +44,7 @@ services:
depends_on:
- ipv6nat
- shadowsocks
networks:
backend:
enable_ipv6: true