Skip to content

Commit

Permalink
chore: clean up unused server blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Aug 22, 2024
1 parent eeaeb84 commit fca25c7
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions salt/planet/config/nginx.planet.conf.jinja
Original file line number Diff line number Diff line change
@@ -1,32 +1,5 @@
{% for site, info in salt["pillar.get"]("planet", {}).get("sites").items() %}

server {
listen 80 default_server;
server_name {{ site }};

location /.well-known/acme-challenge/ {
alias /etc/lego/.well-known/acme-challenge/;
try_files $uri =404;
}

location / {
return 301 https://$host$request_uri;
}
}

server {
listen 443 ssl;
server_name {{ site }};
error_log /var/log/nginx/{{ site }}.error.log;
access_log /var/log/nginx/{{ site }}.access.log;

# By default use the snakeoil certificate...
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;

root /srv/{{ site }}/;
}

server {
listen 9000 ssl;
server_name {{ site }};
Expand Down

0 comments on commit fca25c7

Please sign in to comment.