File tree Expand file tree Collapse file tree 9 files changed +56
-3
lines changed Expand file tree Collapse file tree 9 files changed +56
-3
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ _This [Ansible](https://www.ansible.com) configuration automates the setup of a
38
38
- ** AdGuard Home** for ad-blocking and privacy protection
39
39
- ** Beaver Habits Tracker** for habit tracking
40
40
- ** Dotfiles** for a standardized environment
41
+ - ** Personal Site** for hosting your personal website
41
42
42
43
## ⚙️ Requirements
43
44
@@ -130,7 +131,7 @@ Please set your timezone id (TZ identifier) with `TIMEZONE` (check this [Wikiped
130
131
To enable secure SSH access, copy your public key to the Raspberry Pi:
131
132
132
133
``` sh
133
- ssh-copy-id nhan@raspberrypi.local
134
+ ssh-copy-id nhan@npham.de
134
135
```
135
136
136
137
### 2. Update SSH Configuration
Original file line number Diff line number Diff line change 1
1
[raspberrypi]
2
- pi. npham.de ansible_user =nhan ansible_become =true
2
+ npham.de ansible_user =nhan ansible_become =true
Original file line number Diff line number Diff line change 44
44
- ente-auth
45
45
- adguard-home
46
46
- pivpn
47
+ - personal-site
Original file line number Diff line number Diff line change 10
10
}
11
11
}
12
12
13
+ {{ PERSONAL_SITE_DOMAIN }} {
14
+ reverse_proxy localhost:{{ PERSONAL_SITE_PORT }}
15
+ }
16
+
13
17
https://{{ VAULTWARDEN_DOMAIN }} {
14
18
# This setting may have compatibility issues with some browsers
15
19
# (e.g., attachment downloading on Firefox). Try disabling this
Original file line number Diff line number Diff line change 145
145
hide : true
146
146
nextcloud-aio-watchtower :
147
147
hide : true
148
+ personal-site :
149
+ name : Personal Site
150
+ icon : https://npham.de/favicon.ico
151
+ url : https://npham.de
152
+ description : Personal Site
148
153
vaultwarden :
149
154
name : Vaultwarden
150
155
icon : si:vaultwarden
Original file line number Diff line number Diff line change
1
+ GITHUB_PERSONAL_ACCESS_TOKEN={{ PERSONAL_SITE_GITHUB_API_TOKEN }}
2
+ NOTION_SECRET={{ PERSONAL_SITE_NOTION_SECRET }}
3
+ NOTION_DATABASE_ID={{ PERSONAL_SITE_NOTION_DB_ID }}
Original file line number Diff line number Diff line change
1
+ services:
2
+ web:
3
+ build: .
4
+ container_name: personal-site
5
+ ports:
6
+ - "127.0.0.1:{{ PERSONAL_SITE_PORT }}:3000"
7
+ env_file: .env
Original file line number Diff line number Diff line change
1
+ ---
2
+ - name : Set up personal site
3
+ vars :
4
+ personal_site_dir : " /mnt/data/personal-site"
5
+
6
+ block :
7
+ - name : Download personal site
8
+ ansible.builtin.git :
9
+ dest : " {{ personal_site_dir }}"
10
+ repo : " https://github.com/Nitestack/personal-site.git"
11
+
12
+ - name : Copy docker-compose.yml to personal site directory
13
+ ansible.builtin.template :
14
+ src : " ../files/docker-compose.yml.j2"
15
+ dest : " {{ personal_site_dir }}/docker-compose.yml"
16
+
17
+ - name : Copy .env to personal site directory
18
+ ansible.builtin.template :
19
+ src : " ../files/.env.j2"
20
+ dest : " {{ personal_site_dir }}/.env"
21
+
22
+ - name : Start Docker Compose
23
+ community.docker.docker_compose_v2 :
24
+ project_src : " {{ personal_site_dir }}"
25
+ build : always
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ BEAVERHABITS_DOMAIN: "habits.example.com"
10
10
BEAVERHABITS_PORT : 8085
11
11
12
12
# Cloudflare DDNS Updater
13
- CLOUDFLARE_DOMAINS : " pi. example.com"
13
+ CLOUDFLARE_DOMAINS : " example.com"
14
14
CLOUDFLARE_API_TOKEN : " " # `Edit zone DNS` permissions
15
15
16
16
# Ente Auth
@@ -38,6 +38,13 @@ NEXTCLOUD_DOMAIN: "cloud.example.com"
38
38
NEXTCLOUD_PORT : 11000
39
39
NEXTCLOUD_AIO_PORT : 8080
40
40
41
+ # Personal Site
42
+ PERSONAL_SITE_DOMAIN : " example.com"
43
+ PERSONAL_SITE_PORT : 3001
44
+ PERSONAL_SITE_GITHUB_API_TOKEN : " "
45
+ PERSONAL_SITE_NOTION_SECRET : " "
46
+ PERSONAL_SITE_NOTION_DB_ID : " "
47
+
41
48
# PiVPN
42
49
PIVPN_DOMAIN : " vpn.example.com"
43
50
PIVPN_PORT : 51820
You can’t perform that action at this time.
0 commit comments