LLaMA2
2022-10-28 11:40:11 +08:00
##v2ray
{ "log":{ "access":"/var/log/v2ray/access.log", "error":"/var/log/v2ray/error.log", "loglevel":"warning" }, "inbounds":[ { "port":YOUR_PORT_HERE, "listen":"127.0.0.1", "protocol":"vmess", "settings":{ "clients":[ { "id":"YOUR_CLIENT_ID_HERE", "alterId":0, "level":1 } ] }, "streamSettings":{ "network":"ws", "wsSettings":{ "path":"/YOUR_PATH_HERE" } } } ], "outbounds":[ { "protocol":"freedom", "settings":{} } ] }
##nginx
server{ listen443ssl; server_nameYOUR_DOMAIN; ssl_certificate/etc/letsencrypt/live/YOUR_DOMAIN/fullchain.pem; ssl_certificate_key/etc/letsencrypt/live/YOUR_DOMAIN/privkey.pem; include/etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam/etc/letsencrypt/ssl-dhparams.pem; location/{ indexindex.html; } location/upload{ proxy_redirectoff; proxy_passhttp://127.0.0.1:YOUR_PORT_HERE; proxy_http_version1.1; proxy_set_headerUpgrade$http_upgrade; proxy_set_headerConnection"upgrade"; proxy_read_timeout15s; } }