Add personal website
This commit is contained in:
parent
bbb037df40
commit
724d177e21
|
@ -4,6 +4,7 @@
|
|||
apps_include:
|
||||
- caddy
|
||||
- searxng
|
||||
- website
|
||||
- watchtower
|
||||
|
||||
searxng_secret_key: "{{ vault_searxng_secret_key }}"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -75,3 +75,37 @@
|
|||
}
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
{% if 'website' in apps_include %}
|
||||
www.{{ apps_vars.website.domain }} {
|
||||
tls {{ tls_email }}
|
||||
|
||||
log {
|
||||
output discard
|
||||
}
|
||||
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||
-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 %}
|
|
@ -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 }}:
|
||||
|
|
17
roles/apps/templates/compose-files/website.yml.j2
Normal file
17
roles/apps/templates/compose-files/website.yml.j2
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue