설명 없음

gitea.nginx 675B

1234567891011121314151617181920212223242526272829
  1. server {
  2. listen 80;
  3. server_name {{ server_name }};
  4. include /etc/nginx/include/certbot.conf;
  5. location / {
  6. return 301 https://$host$request_uri;
  7. }
  8. }
  9. server {
  10. listen 443 ssl;
  11. server_name {{ server_name }};
  12. include /etc/nginx/include/ssl.conf;
  13. ssl_certificate /etc/nginx/ssl.d/{{ server_name }}/fullchain.pem;
  14. ssl_certificate_key /etc/nginx/ssl.d/{{ server_name }}/privkey.pem;
  15. location / {
  16. # The trailing '/' is important as it causes nginx to send the
  17. # cleaned URI through to the destination service (double slashes
  18. # removed, etc.).
  19. proxy_pass http://127.0.0.1:3000/;
  20. include /etc/nginx/include/proxy.conf;
  21. }
  22. }