查询进程号
netstat -ano | findstr "端口号"
然后在任务管理器中输入进程号,杀掉即可
免费使用ssl
http://192.168.3.14:80 {
redir https://192.168.3.14:8888
}
https://192.168.3.14:8888 {
@not_api {
not path /prod-api/*
}
root @not_api D:\work\dist
file_server
try_files {path} {path} /index.html
handle /prod-api/* {
uri strip_prefix /prod-api
reverse_proxy http://localhost:8100
}
@websockets {
header Connection Upgrade
header Upgrade websocket
}
handle @websockets {
reverse_proxy localhost:8100 {
header_up Host {host}
header_up X-Real-IP {remote_host}
header_up grade WebSocket
}
}
}