From e0c206cfc517320784f9925fdf947d36fe43e8ec Mon Sep 17 00:00:00 2001 From: d3m0k1d Date: Thu, 20 Nov 2025 17:21:44 +0300 Subject: [PATCH] Refactoring --- frontend/Dockerfile => Dockerfile | 0 {frontend/contacts => contacts}/index.html | 0 {frontend/contacts => contacts}/style.css | 0 docker-compose.yml | 21 ---------- frontend/playbook.yml | 42 ------------------- {frontend/guestbook => guestbook}/index.html | 0 {frontend/guestbook => guestbook}/style.css | 0 frontend/index.html => index.html | 0 ...2f6c6f676f732f6769742d69636f6e2e737667.svg | 0 {frontend/posts => posts}/index.html | 0 {frontend/posts => posts}/style.css | 0 frontend/style.css => style.css | 0 12 files changed, 63 deletions(-) rename frontend/Dockerfile => Dockerfile (100%) rename {frontend/contacts => contacts}/index.html (100%) rename {frontend/contacts => contacts}/style.css (100%) delete mode 100644 docker-compose.yml delete mode 100644 frontend/playbook.yml rename {frontend/guestbook => guestbook}/index.html (100%) rename {frontend/guestbook => guestbook}/style.css (100%) rename frontend/index.html => index.html (100%) rename {frontend/media => media}/68747470733a2f2f63646e2e776f726c64766563746f726c6f676f2e636f6d2f6c6f676f732f6769742d69636f6e2e737667.svg (100%) rename {frontend/posts => posts}/index.html (100%) rename {frontend/posts => posts}/style.css (100%) rename frontend/style.css => style.css (100%) diff --git a/frontend/Dockerfile b/Dockerfile similarity index 100% rename from frontend/Dockerfile rename to Dockerfile diff --git a/frontend/contacts/index.html b/contacts/index.html similarity index 100% rename from frontend/contacts/index.html rename to contacts/index.html diff --git a/frontend/contacts/style.css b/contacts/style.css similarity index 100% rename from frontend/contacts/style.css rename to contacts/style.css diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 3437ebb..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,21 +0,0 @@ -services: - frontend: - build: ./frontend - ports: - - 80:80 - - 443:443 - restart: always - volumes: - - ./frontend:/usr/share/nginx/html:ro - - /etc/letsencrypt:/etc/letsencrypt:ro - - ./frontend/nginx.conf:/etc/nginx/nginx.conf:ro - networks: - - blog - -networks: - blog: - driver: bridge - -volumes: - frontend: - driver: local \ No newline at end of file diff --git a/frontend/playbook.yml b/frontend/playbook.yml deleted file mode 100644 index abb598c..0000000 --- a/frontend/playbook.yml +++ /dev/null @@ -1,42 +0,0 @@ -- name: Configure a frontend server - hosts: server - become: yes - - tasks: - - name: Install git - apt: - name: git - state: latest - update_cache: yes - when: ansible_os_family == "Debian" - - - name: Clone repo with script - ansible.builtin.git: - repo: https://github.com/d3m0k1d/automation-scripts.git - dest: /opt/automation-scripts - version: main - when: ansible_os_family == "Debian" - - - name: Make install script executable - ansible.builtin.file: - path: /opt/automation-scripts/scripts/sysadmins/debian-init-docker.sh - mode: '0755' - when: ansible_os_family == "Debian" - - - name: Run install script - ansible.builtin.shell: - cmd: /opt/automation-scripts/scripts/sysadmins/debian-init-docker.sh - chdir: /opt/automation-scripts/scripts/sysadmins - when: ansible_os_family == "Debian" - register: docker_install_result - - - name: Install certbot - apt: - name: python3-certbot-nginx - state: latest - update_cache: yes - when: ansible_os_family == "Debian" - - - name: Run certbot for domain - shell: certbot --nginx -d d3m0k1d.ru -d www.d3m0k1d.ru --non-interactive --agree-tos --email contact@d3m0k1d.ru - when: ansible_os_family == "Debian" diff --git a/frontend/guestbook/index.html b/guestbook/index.html similarity index 100% rename from frontend/guestbook/index.html rename to guestbook/index.html diff --git a/frontend/guestbook/style.css b/guestbook/style.css similarity index 100% rename from frontend/guestbook/style.css rename to guestbook/style.css diff --git a/frontend/index.html b/index.html similarity index 100% rename from frontend/index.html rename to index.html diff --git a/frontend/media/68747470733a2f2f63646e2e776f726c64766563746f726c6f676f2e636f6d2f6c6f676f732f6769742d69636f6e2e737667.svg b/media/68747470733a2f2f63646e2e776f726c64766563746f726c6f676f2e636f6d2f6c6f676f732f6769742d69636f6e2e737667.svg similarity index 100% rename from frontend/media/68747470733a2f2f63646e2e776f726c64766563746f726c6f676f2e636f6d2f6c6f676f732f6769742d69636f6e2e737667.svg rename to media/68747470733a2f2f63646e2e776f726c64766563746f726c6f676f2e636f6d2f6c6f676f732f6769742d69636f6e2e737667.svg diff --git a/frontend/posts/index.html b/posts/index.html similarity index 100% rename from frontend/posts/index.html rename to posts/index.html diff --git a/frontend/posts/style.css b/posts/style.css similarity index 100% rename from frontend/posts/style.css rename to posts/style.css diff --git a/frontend/style.css b/style.css similarity index 100% rename from frontend/style.css rename to style.css