将配置文件改为config.json.待测试版本
This commit is contained in:
parent
3e8309bd5b
commit
c5f8733d4c
18
config.json
Normal file
18
config.json
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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
15
docker-compose.yml.bak
Normal 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:
|
||||
Loading…
Reference in New Issue
Block a user