Initial commit
This commit is contained in:
commit
b16f2585c7
19 changed files with 690 additions and 0 deletions
26
templates/nginx.j2
Normal file
26
templates/nginx.j2
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
#
|
||||
server {
|
||||
listen 80;
|
||||
server_name {{ app_name }}.fudiggity.nl;
|
||||
return 301 https://$server_name$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name {{ app_name }}.fudiggity.nl;
|
||||
|
||||
ssl_certificate /etc/ssl/{{ app_name }}/{{ app_name }}.crt;
|
||||
ssl_certificate_key /etc/ssl/{{ app_name }}/local.pem;
|
||||
|
||||
access_log /var/log/nginx/{{ app_name }}.log;
|
||||
error_log /var/log/nginx/{{ app_name }}.log;
|
||||
|
||||
location / {
|
||||
include proxy_params;
|
||||
|
||||
proxy_redirect off;
|
||||
|
||||
proxy_pass http://localhost:9000;
|
||||
}
|
||||
}
|
||||
Reference in a new issue