1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

update outline-ss-server

This commit is contained in:
kev 2024-08-16 15:18:23 +08:00
parent 3255f424ca
commit 60f8d9f257
3 changed files with 15 additions and 4 deletions

View File

@ -11,11 +11,11 @@ ARG OUTLINE_SS_SERVER_ARCH=x86_64
ARG OUTLINE_SS_SERVER_FILE=outline-ss-server_${OUTLINE_SS_SERVER_VERSION}_${OUTLINE_SS_SERVER_OS}_${OUTLINE_SS_SERVER_ARCH}.tar.gz
ARG OUTLINE_SS_SERVER_URL=https://github.com/Jigsaw-Code/outline-ss-server/releases/download/v${OUTLINE_SS_SERVER_VERSION}/${OUTLINE_SS_SERVER_FILE}
ARG IP_ASN_MMDB_VERSION=2024-07
ARG IP_ASN_MMDB_VERSION=2024-08
ARG IP_ASN_MMDB_URL=https://download.db-ip.com/free/dbip-asn-lite-${IP_ASN_MMDB_VERSION}.mmdb.gz
ARG IP_ASN_MMDB_FILE=ip-asn.mmdb
ARG IP_COUNTRY_MMDB_VERSION=2024-07
ARG IP_COUNTRY_MMDB_VERSION=2024-08
ARG IP_COUNTRY_MMDB_URL=https://download.db-ip.com/free/dbip-country-lite-${IP_COUNTRY_MMDB_VERSION}.mmdb.gz
ARG IP_COUNTRY_MMDB_FILE=ip-country.mmdb

View File

@ -0,0 +1,11 @@
#!/bin/bash
set -euo pipefail
DATE=$(date +%Y-%m)
wget -O ip-asn.mmdb.gz https://download.db-ip.com/free/dbip-asn-lite-$DATE.mmdb.gz
wget -O ip-country.mmdb.gz https://download.db-ip.com/free/dbip-country-lite-$DATE.mmdb.gz
systemctl stop outline-ss-server
gunzip -f ip-asn.mmdb.gz ip-country.mmdb.gz
systemctl start outline-ss-server

View File

@ -6,8 +6,8 @@ After=network.target
User=vpn
Group=vpn
WorkingDirectory=/etc/outline-ss-server
# https://download.db-ip.com/free/dbip-asn-lite-2024-07.mmdb.gz
# https://download.db-ip.com/free/dbip-country-lite-2024-07.mmdb.gz
# https://download.db-ip.com/free/dbip-asn-lite-$(date +%Y-%m).mmdb.gz
# https://download.db-ip.com/free/dbip-country-lite-$(date +%Y-%m).mmdb.gz
ExecStart=/usr/local/bin/outline-ss-server -config=config.yml \
-ip_asn_db=ip-asn.mmdb \
-ip_country_db=ip-country.mmdb \