This commit is contained in:
srcrs 2023-07-30 13:32:57 +08:00
parent e7009637bc
commit 41116d0dc8

View File

@ -52,3 +52,30 @@ docker-compose up -d
``` ```
部署成功后通过ip+端口号访问 部署成功后通过ip+端口号访问
# nginx反代
```conf
server {
listen 443 ssl;
server_name rss.lass.cc;
ssl_certificate fullchain.cer;
ssl_certificate_key lass.cc.key;
location / {
proxy_pass http://localhost:8080;
}
location /ws {
proxy_pass http://localhost:8080/ws;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
}
server {
listen 80;
server_name rss.lass.cc;
rewrite ^(.*)$ https://$host$1 permanent;
}
```