You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
389 B

4 years ago
  1. server {
  2. listen 80;
  3. location / {
  4. proxy_set_header x-Real-IP $remote_addr;
  5. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  6. proxy_set_header Host $http_host;
  7. proxy_pass http://localhost:3389/; # gunicorn绑定的端口号
  8. }
  9. # 配置static的静态文件:
  10. location ~ ^\/static\/.*$ {
  11. root /Project/demo;
  12. }
  13. }