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

View File

@ -17,11 +17,10 @@ services:
- 8388/udp - 8388/udp
environment: environment:
- METHOD=chacha20-ietf-poly1305 - METHOD=chacha20-ietf-poly1305
- PASSWORD=96166477-95b6-41a1-92c5-e33bce9694b0 - PASSWORD="replace with your password,Better to replace with UUID"
# - SERVER_ADDR=0.0.0.0 - DNS_ADDRS=8.8.8.8,1.1.1.1 # for ipv4
# - 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 # for ipv6
- DNS_ADDRS=2001:4860:4860::8888,2001:4860:4860::8844,8.8.8.8,1.1.1.1 # - ARGS= -s ::0 #for ipv6
- ARGS= -s ::0
restart: always restart: always
networks: networks:
- backend - backend
@ -45,6 +44,7 @@ services:
depends_on: depends_on:
- ipv6nat - ipv6nat
- shadowsocks - shadowsocks
networks: networks:
backend: backend:
enable_ipv6: true enable_ipv6: true