This commit is contained in:
parent
050cecc84f
commit
fdb1acdaef
5
.env
5
.env
@ -1,5 +0,0 @@
|
||||
PORT=443
|
||||
TARGET_URL=example.com
|
||||
TARGET_PORT=443
|
||||
USERS=exampleuser1,exampleuser2
|
||||
LOG_LEVEL=warn
|
@ -7,12 +7,12 @@ services:
|
||||
image: quackerd/d2ray
|
||||
container_name: d2ray
|
||||
ports:
|
||||
- ${PORT}:${PORT}
|
||||
- 8443:8443
|
||||
environment:
|
||||
- PORT=${PORT}
|
||||
- TARGET_URL=${TARGET_URL}
|
||||
- TARGET_PORT=${TARGET_PORT}
|
||||
- USERS=${USERS}
|
||||
- PORT=8443
|
||||
- TARGET_URL=example.com
|
||||
- TARGET_PORT=443
|
||||
- USERS=exampleuser1,exampleuser2
|
||||
- LOG_LEVEL=${LOG_LEVEL}
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
|
@ -1,5 +1,4 @@
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
import jinja2
|
||||
import random
|
||||
@ -55,14 +54,6 @@ class d2args:
|
||||
)
|
||||
return ret
|
||||
|
||||
def get_users_json(self) -> str:
|
||||
ret : str= ""
|
||||
for i in range(len(users)):
|
||||
if (i > 0):
|
||||
ret = ret + ","
|
||||
ret = ret + "{\"id\": \"" + users[i][0] + "\",\"flow\": \"" + users[i][1] + "\"}"
|
||||
return ret
|
||||
|
||||
|
||||
def process_directory(path : str, vars : dict[str, str], delete_template : bool = True) -> None:
|
||||
for f in os.listdir(path):
|
||||
|
Loading…
Reference in New Issue
Block a user