Skip to content

Commit fdb1acd

Browse files
committed
refactor
1 parent 050cecc commit fdb1acd

File tree

3 files changed

+5
-19
lines changed

3 files changed

+5
-19
lines changed

.env

Lines changed: 0 additions & 5 deletions
This file was deleted.

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ services:
77
image: quackerd/d2ray
88
container_name: d2ray
99
ports:
10-
- ${PORT}:${PORT}
10+
- 8443:8443
1111
environment:
12-
- PORT=${PORT}
13-
- TARGET_URL=${TARGET_URL}
14-
- TARGET_PORT=${TARGET_PORT}
15-
- USERS=${USERS}
12+
- PORT=8443
13+
- TARGET_URL=example.com
14+
- TARGET_PORT=443
15+
- USERS=exampleuser1,exampleuser2
1616
- LOG_LEVEL=${LOG_LEVEL}
1717
restart: unless-stopped
1818
networks:

opt/init.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import os
2-
import sys
32
import subprocess
43
import jinja2
54
import random
@@ -55,14 +54,6 @@ def __str__(self):
5554
)
5655
return ret
5756

58-
def get_users_json(self) -> str:
59-
ret : str= ""
60-
for i in range(len(users)):
61-
if (i > 0):
62-
ret = ret + ","
63-
ret = ret + "{\"id\": \"" + users[i][0] + "\",\"flow\": \"" + users[i][1] + "\"}"
64-
return ret
65-
6657

6758
def process_directory(path : str, vars : dict[str, str], delete_template : bool = True) -> None:
6859
for f in os.listdir(path):

0 commit comments

Comments
 (0)