diff --git a/wordpress/ansible-playbook.yml b/wordpress/ansible-playbook.yml index 501c9a1..5128478 100644 --- a/wordpress/ansible-playbook.yml +++ b/wordpress/ansible-playbook.yml @@ -9,7 +9,7 @@ site_url: lexperimental.fr docker_image: wordpress:apache docker_volumes: - - "/var/www/arvuhez/wp-content/:/var/www/html/wp-content" + - "/var/www/lexperimental/wp-content/:/var/www/html/wp-content" mysql_database: lexperimental mysql_username: lexperimental mysql_password: "azlhqsdh" diff --git a/wordpress/lexperimental/.gitignore b/wordpress/lexperimental/.gitignore new file mode 100644 index 0000000..72e8ffc --- /dev/null +++ b/wordpress/lexperimental/.gitignore @@ -0,0 +1 @@ +* diff --git a/wordpress/lexperimental/docker-compose.yml b/wordpress/lexperimental/docker-compose.yml deleted file mode 100644 index 756ad7c..0000000 --- a/wordpress/lexperimental/docker-compose.yml +++ /dev/null @@ -1,27 +0,0 @@ -version: '3' - - -# Generated by ansible for site lexperimental.fr -# At 172.100.0.2 on 172.100.0.0/24 - -services: - wp: - image: wordpress:apache - restart: always - environment: - WORDPRESS_DB_HOST: "172.100.0.1" - WORDPRESS_DB_USER: "lexperimental" - WORDPRESS_DB_PASSWORD: "azlhqsdh" - WORDPRESS_DB_NAME: "lexperimental" - volumes: ['/var/www/arvuhez/wp-content/:/var/www/html/wp-content'] - - networks: - net: - ipv4_address: "172.100.0.2" - -networks: - net: - ipam: - driver: default - config: - - subnet: "172.100.0.0/24" diff --git a/wordpress/lexperimental/lexperimental.fr b/wordpress/lexperimental/lexperimental.fr deleted file mode 100644 index 0af3cde..0000000 --- a/wordpress/lexperimental/lexperimental.fr +++ /dev/null @@ -1,44 +0,0 @@ -# Generated by ansible for site lexperimental.fr -# At 172.100.0.2 on 172.100.0.0/24 - -server { - listen 80; - listen [::]:80; - server_name lexperimental.fr www.lexperimental.fr; - - rewrite ^ https://lexperimental.fr$request_uri permanent; -} - -server { - listen 443 ssl; - listen [::]:443 ssl; - server_name lexperimental.fr www.lexperimental.fr; - - access_log /var/log/nginx/lexperimental-access.log; - error_log /var/log/nginx/error.log; - - # Let's Encrypt - include snippets/letsencrypt.conf; - - include snippets/ssl-params.conf; - ssl_certificate /etc/letsencrypt/live/lexperimental.fr/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/lexperimental.fr/privkey.pem; - - if ($host = www.lexperimental.fr) { - rewrite ^ https://lexperimental.fr$request_uri permanent; - } - - # Run by host - # root /var/www/lexperimental; - # include snippets/wordpress.conf; - - # Run in Docker - include snippets/header-params_server.conf; - location / { - include snippets/header-params_location.conf; - - proxy_pass http://172.100.0.2:80; - } -} - -