added nginx role
This commit is contained in:
1
roles/nginx/templates/hostname.j2
Normal file
1
roles/nginx/templates/hostname.j2
Normal file
@@ -0,0 +1 @@
|
||||
"{{ domain_name }}"
|
||||
4
roles/nginx/templates/index.html.j2
Normal file
4
roles/nginx/templates/index.html.j2
Normal 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>
|
||||
10
roles/nginx/templates/nginx-config.j2
Normal file
10
roles/nginx/templates/nginx-config.j2
Normal 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 ;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user