server { listen 443 ssl; server_name sso.tlyq.ai; ssl_certificate /etc/letsencrypt/live/www.tlyq.ai/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/www.tlyq.ai/privkey.pem; # 登录接口限流 location /api/firstfactor { limit_req zone=sso_login burst=3 nodelay; proxy_pass http://authelia:9091; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; } location / { proxy_pass http://authelia:9091; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; } }