暫無描述

sms_feed.nginx 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. server {
  2. listen 80;
  3. server_name {{ settings.server_name }};
  4. include /etc/nginx/include/certbot.conf;
  5. location /static/ {
  6. alias /data/clients/360south/sms_feed/static/;
  7. expires 30d;
  8. autoindex off;
  9. }
  10. location / {
  11. # The trailing '/' is important as it causes nginx to send the
  12. # cleaned URI through to the destination service (double slashes
  13. # removed, etc.).
  14. proxy_pass http://127.0.0.1:{{ settings.listen_port }}/;
  15. include /etc/nginx/include/proxy.conf;
  16. }
  17. }
  18. server {
  19. listen 443 ssl;
  20. server_name {{ settings.server_name }};
  21. include /etc/nginx/include/ssl.conf;
  22. ssl_certificate /etc/nginx/ssl.d/{{ settings.server_name }}/fullchain.pem;
  23. ssl_certificate_key /etc/nginx/ssl.d/{{ settings.server_name }}/privkey.pem;
  24. location /static/ {
  25. alias /data/clients/360south/sms_feed/static/;
  26. expires 30d;
  27. autoindex off;
  28. }
  29. location / {
  30. # The trailing '/' is important as it causes nginx to send the
  31. # cleaned URI through to the destination service (double slashes
  32. # removed, etc.).
  33. proxy_pass http://127.0.0.1:{{ settings.listen_port }}/;
  34. include /etc/nginx/include/proxy.conf;
  35. }
  36. }