aboutsummaryrefslogtreecommitdiff
path: root/data/invidious
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2023-06-25 09:52:36 -0400
committerSam Chudnick <sam@chudnick.com>2023-06-25 09:52:36 -0400
commit95b73daa36b23565a8566f71f9b202d3459b685f (patch)
treecb17b021be70e7868d0ec235a761f0ecdc80f3f2 /data/invidious
Initial CommitHEADmaster
Diffstat (limited to 'data/invidious')
-rw-r--r--data/invidious/invidious.conf.j234
-rw-r--r--data/invidious/invidious.env11
2 files changed, 45 insertions, 0 deletions
diff --git a/data/invidious/invidious.conf.j2 b/data/invidious/invidious.conf.j2
new file mode 100644
index 0000000..816d880
--- /dev/null
+++ b/data/invidious/invidious.conf.j2
@@ -0,0 +1,34 @@
1server {
2 listen 443 ssl;
3 server_name {{ invidious_server_name }};
4
5 ssl_certificate /etc/letsencrypt/live/chudnick.com/fullchain.pem;
6 ssl_certificate_key /etc/letsencrypt/live/chudnick.com/privkey.pem;
7 add_header Strict-Transport-Security "max-age=31536000" always;
8 ssl_stapling on;
9 ssl_stapling_verify on;
10
11 # Security / XSS Mitigation Headers
12 add_header X-Frame-Options "SAMEORIGIN";
13 add_header X-XSS-Protection "1; mode=block";
14 add_header X-Content-Type-Options "nosniff";
15
16 # authelia
17 include /etc/nginx/snippets/authelia-location.conf;
18
19 location / {
20 #authelia
21 include /etc/nginx/snippets/proxy.conf;
22 include /etc/nginx/snippets/authelia-authrequest.conf;
23
24 proxy_pass http://127.0.0.1:{{ invidious_external_port }}/;
25 }
26
27}
28
29server {
30 listen 80;
31 listen [::]:80;
32 server_name {{ invidious_server_name }};
33 return 301 https://$host$request_uri;
34}
diff --git a/data/invidious/invidious.env b/data/invidious/invidious.env
new file mode 100644
index 0000000..3ef540b
--- /dev/null
+++ b/data/invidious/invidious.env
@@ -0,0 +1,11 @@
1INVIDIOUS_CONFIG: |
2db: |
3 dbname: invidious
4 user: kemal
5 password: changeme
6 host: invidious-db
7 port: 5432
8check_tables: true
9https_only: true
10hsts: true
11domain: invidious.chudnick.com