将配置文件改为config.json.待测试版本

This commit is contained in:
vincent 2024-05-15 20:53:04 +08:00
parent 3e8309bd5b
commit c5f8733d4c
3 changed files with 35 additions and 2 deletions

18
config.json Normal file
View File

@ -0,0 +1,18 @@
{
"listen": ":8443",
"tls": {
"cert": "/etc/hysteria/server.crt",
"key": "/etc/hysteria/server.key"
},
"auth": {
"type": "password",
"password": "JitvTPJZp3TeeVS"
},
"masquerade": {
"type": "proxy",
"proxy": {
"url": "https://bing.com",
"rewriteHost": true
}
}
}

View File

@ -7,9 +7,9 @@ services:
network_mode: "host"
volumes:
- acme:/acme
- ./hysteria.yaml:/etc/hysteria.yaml
- ./config.json:/etc/hysteria/config.json
- ./key/server.crt:/etc/hysteria/server.crt
- ./key/server.key:/etc/hysteria/server.key
command: ["server", "-c", "/etc/hysteria.yaml"]
command: ["server", "-c", "/etc/hysteria/config.json"]
volumes:
acme:

15
docker-compose.yml.bak Normal file
View File

@ -0,0 +1,15 @@
version: "3.9"
services:
hysteria:
image: tobyxdd/hysteria:latest
container_name: hysteria
restart: always
network_mode: "host"
volumes:
- acme:/acme
- ./hysteria.yaml:/etc/hysteria.yaml
- ./key/server.crt:/etc/hysteria/server.crt
- ./key/server.key:/etc/hysteria/server.key
command: ["server", "-c", "/etc/hysteria.yaml"]
volumes:
acme: