# 飞书登录回调代理 # 注意:location 不带 trailing slash,proxy_pass 不带路径 # 必须在前端代理之前配置 # /login 用于飞书 OAuth 回调 location /login { proxy_pass http://127.0.0.1:8787; proxy_http_version 1.1; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } location /login/callback { proxy_pass http://127.0.0.1:8787; proxy_http_version 1.1; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } location /login/qrcode { proxy_pass http://127.0.0.1:8787; proxy_http_version 1.1; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } # 飞书卡片回调(明文传输,无需加密验证) location /feishu/card/callback { proxy_pass http://127.0.0.1:8787; proxy_http_version 1.1; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } # 用户文档静态托管 location /docs/ { alias /opt/1panel/www/sites/uniservice-mobile.hnxinyouhe.com/index/server/frontend/public/docs/; index user-guide.html; types { text/html html htm; text/css css; application/javascript js; image/svg+xml svg; } add_header Cache-Control "public, max-age=3600"; charset utf-8; }