Last active
February 15, 2023 08:26
-
-
Save ricky9w/386d0a6f62a898257908a657d20c45fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
version: '3' | |
services: | |
trojan-go: | |
image: teddysun/trojan-go:latest | |
restart: always | |
volumes: | |
- ./server.json:/etc/trojan-go/server.json | |
- ./crt/:/opt/crt/ | |
command: /usr/bin/trojan-go -config /etc/trojan-go/server.json | |
network_mode: host | |
depends_on: | |
- cloudreve | |
cloudreve: | |
image: xavierniu/cloudreve | |
restart: always | |
volumes: | |
- ./cloudreve/data/uploads:/cloudreve/uploads | |
- ./cloudreve/config:/cloudreve/config | |
- ./cloudreve/db:/cloudreve/db | |
- ./cloudreve/avatar:/cloudreve/avatar | |
ports: | |
- "127.0.0.1:5212:5212" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"run_type": "server", | |
"local_addr": "::", | |
"local_port": 443, | |
"remote_addr": "127.0.0.1", | |
"remote_port": 5212, | |
"password": [ | |
"<Your-Password>" | |
], | |
"log_level": 1, | |
"ssl": { | |
"cert": "/path/to/crt.pem", | |
"key": "/path/to/key.pem", | |
"key_password": "", | |
"cipher_tls13":"TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384", | |
"prefer_server_cipher": true, | |
"alpn": [ | |
"http/1.1" | |
], | |
"reuse_session": true, | |
"session_ticket": false, | |
"session_timeout": 600, | |
"plain_http_response": "", | |
"curves": "", | |
"dhparam": "", | |
"fallback_addr": "127.0.0.1", | |
"fallback_port": 5212 | |
}, | |
"tcp": { | |
"no_delay": true, | |
"keep_alive": true, | |
"fast_open": false, | |
"fast_open_qlen": 20 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment