Automation and setup for sites I own.
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.
 
 
 
 

40 rivejä
957 B

  1. server {
  2. listen 443 ssl;
  3. listen [::]:443 ssl;
  4. server_name mitchty.net;
  5. root /var/www/default/htdocs;
  6. index index.htm index.html;
  7. ssl_certificate /etc/ssl/uacme/mitchty.net/cert.pem;
  8. ssl_certificate_key /etc/ssl/uacme/private/mitchty.net/key.pem;
  9. ssl_stapling on;
  10. ssl_protocols TLSv1.2;
  11. location / {
  12. try_files $uri $uri/ =404;
  13. }
  14. location ^~ /.well-known/acme-challenge {
  15. alias /var/www/.well-known/acme-challenge;
  16. }
  17. }
  18. server {
  19. listen 443 ssl;
  20. listen [::]:443 ssl;
  21. server_name git.mitchty.net;
  22. ssl_certificate /etc/ssl/uacme/git.mitchty.net/cert.pem;
  23. ssl_certificate_key /etc/ssl/uacme/private/git.mitchty.net/key.pem;
  24. ssl_stapling on;
  25. ssl_protocols TLSv1.2;
  26. location / {
  27. proxy_pass http://unix:/var/lib/gitea/unix-domain-socket:/;
  28. }
  29. location ^~ /.well-known/acme-challenge {
  30. alias /var/www/.well-known/acme-challenge;
  31. }
  32. }