server { listen 443 ssl; listen [::]:443 ssl; server_name mitchty.com; root /var/www/default/htdocs; index index.htm index.html; ssl_certificate /etc/ssl/uacme/mitchty.com/cert.pem; ssl_certificate_key /etc/ssl/uacme/private/mitchty.com/key.pem; ssl_stapling on; ssl_protocols TLSv1.2; location / { try_files $uri $uri/ =404; } location ^~ /.well-known/acme-challenge { alias /var/www/.well-known/acme-challenge; } } server { listen 443 ssl; listen [::]:443 ssl; server_name git.mitchty.com; ssl_certificate /etc/ssl/uacme/git.mitchty.com/cert.pem; ssl_certificate_key /etc/ssl/uacme/private/git.mitchty.com/key.pem; ssl_stapling on; ssl_protocols TLSv1.2; location / { proxy_pass http://unix:/var/lib/gitea/unix-domain-socket:/; } location ^~ /.well-known/acme-challenge { alias /var/www/.well-known/acme-challenge; } }