- server {
- listen 443 ssl default_server;
- listen [::]:443 ssl default_server;
- server_name functionalidiot.com;
- root /var/www/default/htdocs;
- index index.htm index.html;
-
- ssl_certificate /etc/ssl/uacme/functionalidiot.com/cert.pem;
- ssl_certificate_key /etc/ssl/uacme/private/functionalidiot.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.functionalidiot.com;
-
- ssl_certificate /etc/ssl/uacme/git.functionalidiot.com/cert.pem;
- ssl_certificate_key /etc/ssl/uacme/private/git.functionalidiot.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;
- }
- }
|