Skip to content

Commit

Permalink
update v2ray nginx cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
miladrahimi committed May 31, 2024
1 parent 5e5ea07 commit f19e141
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions v2ray-nginx-cdn/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ services:
- NGINX_DOCKER_GEN_CONTAINER=dockergen

v2ray:
image: v2fly/v2fly-core:v4.45.2
image: ghcr.io/v2fly/v2ray:v5.16.1
container_name: v2ray
restart: always
environment:
Expand All @@ -56,4 +56,4 @@ services:
- LETSENCRYPT_HOST=YOUR.DOMAIN.COM
- VIRTUAL_PORT=1310
volumes:
- './v2ray/config:/etc/v2ray/'
- ./v2ray.json:/etc/v2ray/config.json
2 changes: 1 addition & 1 deletion v2ray-nginx-cdn/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# LOAD CONFIG FILES

v2rayConfigPath = Path(__file__).parent.joinpath('v2ray/config/config.json')
v2rayConfigPath = Path(__file__).parent.joinpath('v2ray.json')
dockerComposePath = Path(__file__).parent.joinpath('docker-compose.yml')
file = open(str(v2rayConfigPath), 'r', encoding='utf-8')
config = json.load(file)
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion v2ray-nginx-cdn/vmess.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def config_generator(domain, uuid, ip=""):


path = Path(__file__).parent
v2ray_config_file = open(str(path.joinpath('v2ray/config/config.json')), 'r', encoding='utf-8')
v2ray_config_file = open(str(path.joinpath('v2ray.json')), 'r', encoding='utf-8')
v2ray_config = json.load(v2ray_config_file)
with open(str(path.joinpath('docker-compose.yml')), 'r') as f:
dockerCompose = yaml.safe_load(f)
Expand Down

0 comments on commit f19e141

Please sign in to comment.