将配置文件改为config.json.待测试版本
This commit is contained in:
+18
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
Reference in New Issue
Block a user