1
0

Add configuration for primary vds

This commit is contained in:
2017-07-30 15:23:01 +03:00
commit 7e81d6fe00
12 changed files with 109 additions and 0 deletions

View File

@ -0,0 +1,14 @@
---
- name: Create nginx config
template:
src: site.conf.j2
dest: /etc/nginx/sites-enabled/s2photo.conf
notify: restart nginx
- name: Create root folder
file:
path: /var/www/s2photo
state: directory
owner: deployer
group: deployer
mode: u=rw,g=r,o=r

View File

@ -0,0 +1,10 @@
server {
listen 80;
server_name s2photo.ru www.s2photo.ru;
location / {
root /var/www/s2photo/current;
index index.html;
try_files $uri $uri/ =404;
}
}