feat: update README with server reboot instructions and modify Caddyfile for IP headers
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 14s
Nix Format Check / check-format (push) Successful in 47s
Python Lint Check / check-python (push) Failing after 10s

This commit is contained in:
Menno van Leeuwen 2025-03-26 15:17:01 +01:00
parent 87fc21ac5a
commit 7d4b255b4c
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE
4 changed files with 18 additions and 12 deletions

View File

@ -67,7 +67,17 @@ If you add a new system you should add the relevant files to these paths.
- `config/ssh/authorized_keys`: Contains the public keys per hostname that will be symlinked to the `~/.ssh/authorized_keys` file. - `config/ssh/authorized_keys`: Contains the public keys per hostname that will be symlinked to the `~/.ssh/authorized_keys` file.
- `config/home-manager/flake.nix`: Contains an array `homeConfigurations` where you should be adding the new system hostname and relevant configuration. - `config/home-manager/flake.nix`: Contains an array `homeConfigurations` where you should be adding the new system hostname and relevant configuration.
### Object Storage ### Server reboots
In case you reboot a server, it's likely that this runs JuiceFS.
To be sure that every service is properly accessing JuiceFS mounted files you should probably restart the services once when the server comes online.
```bash
dotf service stop --all
df # confirm JuiceFS is mounted
dotf service start --all
```
### Object Storage (Servers only)
In case you need to adjust anything regarding the /mnt/object_storage JuiceFS. In case you need to adjust anything regarding the /mnt/object_storage JuiceFS.
Ensure to shut down all services: Ensure to shut down all services:

View File

@ -64,6 +64,10 @@ fladder.mvl.sh {
} }
ip.mvl.sh { ip.mvl.sh {
reverse_proxy echoip:8080 reverse_proxy echoip:8080 {
header_up X-Real-IP {remote}
header_up X-Forwarded-For {remote}
header_up X-Forwarded-Proto {scheme}
}
tls {{ caddy_email }} tls {{ caddy_email }}
} }

View File

@ -4,7 +4,7 @@ services:
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
ports: ports:
- 8080:8080 - 8585:8080
environment: environment:
- DOZZLE_NO_ANALYTICS=true - DOZZLE_NO_ANALYTICS=true
restart: unless-stopped restart: unless-stopped

View File

@ -3,12 +3,4 @@ services:
container_name: 'echoip' container_name: 'echoip'
image: 'mpolden/echoip:latest' image: 'mpolden/echoip:latest'
restart: unless-stopped restart: unless-stopped
ports: network_mode: 'host'
- '8585:8080'
networks:
- caddy_network
networks:
caddy_network:
external: true
name: caddy_default