Add personal website

This commit is contained in:
Sam A. 2024-02-10 18:23:33 +01:00
parent bbb037df40
commit 4f849f27f7
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA
6 changed files with 74 additions and 8 deletions

View file

@ -4,6 +4,7 @@
apps_include:
- caddy
- searxng
- website
- watchtower
searxng_secret_key: "{{ vault_searxng_secret_key }}"

View file

@ -66,6 +66,20 @@ apps_vars:
extra_tasks: false
version: latest
tor:
backup: false
sender: false
extra_tasks: false
version: latest
website:
backup: false
sender: false
extra_tasks: false
domain: samsapti.dev
onion: mldhltdackluvnqso7vk2azcg3ghjxbpw4im6alubymqkonb4kppqcqd.onion
version: latest
restic:
backup: false
sender: false

View file

@ -75,3 +75,39 @@
}
}
{% endif %}
{% if 'website' in apps_include %}
{{ apps_base_domain }},
www.{{ apps_base_domain }},
www.{{ apps_vars.website.domain }} {
tls {{ tls_email }}
log {
output discard
}
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
-Server
}
redir https://{{ apps_vars.website.domain }}{uri}
}
{{ apps_vars.website.domain }} {
tls {{ tls_email }}
log {
output discard
}
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
Onion-Location "http://{{ apps_vars.website.onion }}{uri}"
-Server
}
reverse_proxy website:80
}
{% endif %}

View file

@ -19,8 +19,6 @@ services:
app:
image: searxng/searxng:{{ apps_vars.searxng.version }}
restart: always
environment:
SEARXNG_BASE_URL: https://{{ apps_vars.searxng.domain }}
networks:
default:
{{ apps_shared_docker_network }}:

View file

@ -0,0 +1,17 @@
{# code: language=ansible-jinja #}
# THIS FILE IS MANAGED BY ANSIBLE
version: "3.8"
services:
app:
image: samsapti/website:{{ apps_vars.website.version }}
restart: always
networks:
{{ apps_shared_docker_network }}:
aliases:
- website
networks:
{{ apps_shared_docker_network }}:
external: true

View file

@ -1,18 +1,18 @@
{# code: language=ansible-jinja #}
# THIS FILE IS MANAGED BY ANSIBLE
# vim: ft=yaml
# code: language=yaml
---
use_default_settings: true
general:
debug: false
instance_name: Sam's SearXNG
privacypolicy_url: https://samsapti.dev/privacy
contact_url: https://samsapti.dev/contact
privacypolicy_url: https://{{ apps_vars.website.domain }}/privacy
contact_url: https://{{ apps_vars.website.domain }}/contact
enable_metrics: true
server:
secret_key: "{{ searxng_secret_key }}"
base_url: https://{{ apps_vars.searxng.domain }}
secret_key: {{ searxng_secret_key }}
image_proxy: true
http_protocol_version: '1.1'
method: GET