Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rename www.cheesy.at to test.cheesy.at to make the site reachable
https version temporarily disabled until I deploy the certificates
  • Loading branch information
DavidS committed Sep 1, 2020
1 parent ea5dac6 commit 0eeabaf
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/nodes/hetz3.black.co.at.pp
Expand Up @@ -27,7 +27,7 @@
create_docroot => false,
template => "site/${::fqdn}/nginx-oc.black.co.at.site.erb";

'www.cheesy.at':
'test.cheesy.at':
docroot => 'none',
create_docroot => false,
template => "site/${::fqdn}/nginx-www.cheesy.at.site.erb";
Expand Down
@@ -0,0 +1,30 @@
server {
server_name test.cheesy.at;

access_log /var/log/nginx/test.cheesy.at.access.log;
error_log /var/log/nginx/test.cheesy.at.error.log debug;

location /.well-known/acme-challenge {
alias /var/lib/hosting/acme;
}

location / {
rewrite ^ https://$server_name$request_uri? permanent;
}
}
<%#
server {
listen 443;
server_name test.cheesy.at;
ssl on;
ssl_certificate /etc/nginx/certs/test.cheesy.at.bundle.crt;
ssl_certificate_key /etc/nginx/certs/test.cheesy.at.key;
access_log /var/log/nginx/test.cheesy.at.access.log;
error_log /var/log/nginx/test.cheesy.at.error.log debug;
root /srv/cheesy.at/site;
index index.html;
} %>

0 comments on commit 0eeabaf

Please sign in to comment.