diff --git a/env.yml b/env.yml index 32cb752..7db3ebd 100644 --- a/env.yml +++ b/env.yml @@ -92,7 +92,7 @@ users: etebase: 373 hedgedoc: 1004 hedgedoc_mysql: 1005 - homepage: 101 + homepage: 8686 searxng: 977 searxng_redis: 999 synapse: 991 diff --git a/roles/homepage/files/index/ark.png b/roles/homepage/files/index/ark.png deleted file mode 100644 index 7d97264..0000000 Binary files a/roles/homepage/files/index/ark.png and /dev/null differ diff --git a/roles/homepage/files/index/etesync.png b/roles/homepage/files/index/etesync.png deleted file mode 100644 index 07ea636..0000000 Binary files a/roles/homepage/files/index/etesync.png and /dev/null differ diff --git a/roles/homepage/files/index/favicon-16x16.png b/roles/homepage/files/index/favicon-16x16.png deleted file mode 100644 index 1e2d1d0..0000000 Binary files a/roles/homepage/files/index/favicon-16x16.png and /dev/null differ diff --git a/roles/homepage/files/index/favicon-32x32.png b/roles/homepage/files/index/favicon-32x32.png deleted file mode 100644 index acb37c5..0000000 Binary files a/roles/homepage/files/index/favicon-32x32.png and /dev/null differ diff --git a/roles/homepage/files/index/favicon.ico b/roles/homepage/files/index/favicon.ico deleted file mode 100644 index 3c69d8a..0000000 Binary files a/roles/homepage/files/index/favicon.ico and /dev/null differ diff --git a/roles/homepage/files/index/index.css b/roles/homepage/files/index/index.css deleted file mode 100644 index 4263cd5..0000000 --- a/roles/homepage/files/index/index.css +++ /dev/null @@ -1,69 +0,0 @@ -body { - font-weight: bold; - font-family: Arial; - background-image: url("wallpaper.jpg"); - background-position: center; - background-repeat: no-repeat; - background-size: cover; - min-height: 100vh; - margin: 0; -} - -div { - display: flex; - flex-direction: column; - justify-content: center; - flex-wrap: wrap; - align-content: center; - min-height: 100vh; - width: 65%; - margin: auto; -} - -div a { - border: 3px solid white; - border-radius: 2px; - padding: 12px; - display: flex; - align-items: center; - margin: 35px; - min-width: 300px; - height: 60px; - transition: all .25s ease-in-out; - text-decoration: none; - color: white; - font-size: 1.2em; -} - -p { - margin: auto; -} - -div a:hover { - transform: scale(1.1); - background-color: rgba(255, 255, 255, 0.25); -} - -img { - height: 86%; -} - -main > a { - font-size: 0.9em; - color: white; - text-decoration: none; - position: absolute; - bottom: 8px; - right: 8px; - margin: 0; -} - -main > a:hover { - text-decoration: underline; -} - -@media only screen and (orientation: landscape) { - div { - flex-direction: row; - } -} diff --git a/roles/homepage/files/index/index.html b/roles/homepage/files/index/index.html deleted file mode 100644 index a27b59f..0000000 --- a/roles/homepage/files/index/index.html +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - Homepage - Viyurz.fr - - -
-
- - Matrix logo -

Element/Matrix

-
- - EteSync logo -

EteSync

-
- - NextCloud logo -

Nextcloud

-
- - SearXNG logo -

SearXNG

-
- - Vaultwarden logo -

Vaultwarden

-
- -
- Artwork by 黒崎神楽 -
- - diff --git a/roles/homepage/files/index/logo.jpg b/roles/homepage/files/index/logo.jpg deleted file mode 100644 index 13652e3..0000000 Binary files a/roles/homepage/files/index/logo.jpg and /dev/null differ diff --git a/roles/homepage/files/index/matrix.png b/roles/homepage/files/index/matrix.png deleted file mode 100644 index e0e77b8..0000000 Binary files a/roles/homepage/files/index/matrix.png and /dev/null differ diff --git a/roles/homepage/files/index/nextcloud.png b/roles/homepage/files/index/nextcloud.png deleted file mode 100644 index 1a79370..0000000 Binary files a/roles/homepage/files/index/nextcloud.png and /dev/null differ diff --git a/roles/homepage/files/index/searxng.png b/roles/homepage/files/index/searxng.png deleted file mode 100644 index ff80773..0000000 Binary files a/roles/homepage/files/index/searxng.png and /dev/null differ diff --git a/roles/homepage/files/index/vaultwarden.png b/roles/homepage/files/index/vaultwarden.png deleted file mode 100644 index 3466a08..0000000 Binary files a/roles/homepage/files/index/vaultwarden.png and /dev/null differ diff --git a/roles/homepage/files/index/wallpaper.jpg b/roles/homepage/files/index/wallpaper.jpg deleted file mode 100644 index 3ca7dae..0000000 Binary files a/roles/homepage/files/index/wallpaper.jpg and /dev/null differ diff --git a/roles/homepage/files/nginx.conf b/roles/homepage/files/nginx.conf deleted file mode 100644 index c961c57..0000000 --- a/roles/homepage/files/nginx.conf +++ /dev/null @@ -1,43 +0,0 @@ -pid /tmp/nginx.pid; - -worker_processes auto; -worker_cpu_affinity auto; -worker_rlimit_nofile 2048; - - -events { - worker_connections 1024; -} - -http { - charset utf-8; - - sendfile on; - tcp_nopush on; - tcp_nodelay on; - - gzip off; - - # Hide NGINX version in error messages. - server_tokens off; - - include /etc/nginx/mime.types; - default_type application/octet-stream; - - client_body_temp_path /tmp/client_temp; - proxy_temp_path /tmp/proxy_temp_path; - fastcgi_temp_path /tmp/fastcgi_temp; - uwsgi_temp_path /tmp/uwsgi_temp; - scgi_temp_path /tmp/scgi_temp; - - server { - listen 80 default_server; - listen [::]:80 default_server; - - http2 on; - - server_name _; - - root /mnt/index; - } -} diff --git a/roles/homepage/tasks/update.yml b/roles/homepage/tasks/update.yml index f0c8b1d..7a983bf 100644 --- a/roles/homepage/tasks/update.yml +++ b/roles/homepage/tasks/update.yml @@ -11,16 +11,6 @@ group: "{{ ansible_env['USER'] }}" mode: '640' -- name: Copy nginx.conf and index/ to project directory - copy: - src: "{{ role_path }}/files/" - dest: "{{ homepage_project_dir }}" - owner: "{{ ansible_env['USER'] }}" - group: "{{ ansible_env['USER'] }}" - mode: '644' - # Store result to restart services if the file(s) changed - register: homepage_copy_files_result - - name: Pull project services community.docker.docker_compose: project_src: "{{ homepage_project_dir }}" @@ -38,5 +28,3 @@ - name: Create/Restart project services community.docker.docker_compose: project_src: "{{ homepage_project_dir }}" - # Restart if config file(s) changed - restarted: "{{ homepage_copy_files_result['changed'] | bool }}" diff --git a/roles/homepage/templates/docker-compose.yaml b/roles/homepage/templates/docker-compose.yaml index e8a828d..86241ce 100644 --- a/roles/homepage/templates/docker-compose.yaml +++ b/roles/homepage/templates/docker-compose.yaml @@ -1,11 +1,8 @@ services: homepage: - image: nginx:alpine - restart: always container_name: homepage + image: git.ahur.ac/viyurz/homepage:latest + restart: always user: {{ users['homepage'] }}:{{ users['homepage'] }} ports: - - 127.0.0.1:{{ ports['homepage'] }}:80 - volumes: - - ./nginx.conf:/etc/nginx/nginx.conf - - ./index:/mnt/index + - 127.0.0.1:{{ ports['homepage'] }}:8080