added nginx role

This commit is contained in:
2024-12-04 15:38:14 +01:00
parent 996b0ce4ee
commit 9bbf0a37c0
10 changed files with 109 additions and 0 deletions

View File

@@ -0,0 +1 @@
"{{ domain_name }}"

View File

@@ -0,0 +1,4 @@
<!DOCTYPE html>
<h1>Congratulations!</h1>
<p>The web server is running! </p>
<p>And serving this webpage on port 80.</p>

View File

@@ -0,0 +1,10 @@
server {
listen 80 ;
listen [::]:80 ;
server_name {{ domain_name }} ;
root /var/www/{{ nginx_root }} ;
index index.html index.htm index.nginx-debian.html ;
location / {
try_files $uri $uri/ =404 ;
}
}