summaryrefslogtreecommitdiff
path: root/roles/private/files/johan/http.ca.internal.simponic.xyz.conf
blob: f1cea50e1b1c7cbde55665bf4371e9da99bc2ffd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
server {
  listen 80;
  server_name ca.internal.simponic.xyz;

  location /.well-known/acme-challenge {
    root /var/www/letsencrypt;
    try_files $uri $uri/ =404;
  }

  location / {
    rewrite ^ https://ca.internal.simponic.xyz$request_uri? permanent;
  }
}