php_app_separated_data #1

Merged
clement.veret merged 12 commits from php_app_separated_data into main 2025-03-09 16:56:37 +01:00
3 changed files with 4 additions and 10 deletions
Showing only changes of commit 9c36560f11 - Show all commits

View File

@@ -33,17 +33,9 @@
- {src: proxy_params.j2, dest: /etc/nginx/proxy_params} - {src: proxy_params.j2, dest: /etc/nginx/proxy_params}
- {src: default.j2, dest: /etc/nginx/sites-available/default} - {src: default.j2, dest: /etc/nginx/sites-available/default}
- name: Create base dir
ansible.builtin.file:
path: /srv/http
owner: root
group: www-data
mode: 'u+rwx,g+rs,o-rwx'
state: directory
- name: Create letsencrypt dir - name: Create letsencrypt dir
ansible.builtin.file: ansible.builtin.file:
path: /srv/http/common/letsencrypt path: "{{ nginx_letsencrypt_dir }}"
owner: root owner: root
group: www-data group: www-data
mode: 'u+rwx,g+rs,o-rwx' mode: 'u+rwx,g+rs,o-rwx'

View File

@@ -16,7 +16,7 @@ server {
listen [::]:80 default_server; listen [::]:80 default_server;
location /.well-known/acme-challenge { location /.well-known/acme-challenge {
root /srv/http/common/letsencrypt/; root {{ nginx_letsencrypt_dir }};
} }
location / { location / {

View File

@@ -0,0 +1,2 @@
---
nginx_letsencrypt_dir: /var/www/common/letsencrypt