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.

nginx_site_ssl.conf 642B

12345678910111213141516171819202122232425262728293031323334
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. server_name $GITEA_DOMAIN;
  5. location /.well-known/acme-challenge/ {
  6. alias /run/nginx/challenges/;
  7. try_files $uri =404;
  8. }
  9. location / {
  10. return 301 https://$server_name$request_uri;
  11. }
  12. }
  13. server {
  14. listen 443 ssl http2;
  15. listen [::]:443 ssl http2;
  16. server_name $GITEA_DOMAIN;
  17. client_max_body_size 0;
  18. proxy_http_version 1.1;
  19. ssl_certificate /data/ssl/cert.crt;
  20. ssl_certificate_key /data/ssl/cert.key;
  21. ssl_prefer_server_ciphers on;
  22. location / {
  23. proxy_pass http://localhost:3000;
  24. proxy_set_header Host $host;
  25. proxy_set_header X-Real-IP $remote_addr;
  26. }
  27. }