feat: update README with server reboot instructions and modify Caddyfile for IP headers
This commit is contained in:
parent
87fc21ac5a
commit
7d4b255b4c
12
README.md
12
README.md
@ -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:
|
||||||
|
@ -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 }}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user