README 文档更新;websocket可以连上了
This commit is contained in:
23
nginx-conf/nginx.conf
Normal file
23
nginx-conf/nginx.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
server
|
||||
{
|
||||
server_name epp.only4.work;
|
||||
listen 80;
|
||||
listen 443 ssl http2;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:5203;
|
||||
|
||||
# websocket
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
}
|
||||
|
||||
# SSL相关配置
|
||||
ssl_certificate /www/wwwcert/only4.work/fullchain.crt;
|
||||
ssl_certificate_key /www/wwwcert/only4.work/private.pem;
|
||||
include /www/wwwconf/common/ssl.conf;
|
||||
|
||||
access_log /dev/null;
|
||||
error_log /dev/null;
|
||||
}
|
Reference in New Issue
Block a user