Add hourly restart of invidious
This commit is contained in:
parent
ec76b51931
commit
7565cddaca
2 changed files with 8 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
invidious_repository: https://github.com/iv-org/invidious.git
|
||||
invidious_folder: /srv/invidious
|
||||
invidious_hostname: invidious.example.com
|
||||
invidious_project_name: invidious
|
||||
invidious_internal_port: 3000
|
||||
#handle_ufw will allow access to individious_internal_port from everywhere, use it only if Invidious handles SSL or you don't want to use SSL (what?)
|
||||
handle_ufw: false
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
- name: Ensure composition is up
|
||||
community.docker.docker_compose:
|
||||
project_name: "{{ invidious_hostname }}"
|
||||
project_name: "{{ invidious_project_name }}"
|
||||
project_src: "{{ invidious_folder }}"
|
||||
|
||||
- name: Ensure UFW allows port access
|
||||
|
@ -24,3 +24,9 @@
|
|||
rule: allow
|
||||
port: "{{ invidious_internal_port }}"
|
||||
when: handle_ufw
|
||||
|
||||
- name: Ensure Invidious is restarted every hour
|
||||
cron:
|
||||
name: restart_invidious
|
||||
job: "docker container restart {{ invidious_project_name }}_invidious_1"
|
||||
minute: 56
|
||||
|
|
Loading…
Reference in a new issue