Adjustments
This commit is contained in:
@@ -722,7 +722,7 @@ cloudflare_dns_setup() {
|
|||||||
--data "{\"type\":\"A\",\"name\":\"${SUBDOMAIN}\",\"content\":\"${HOME_SERVER_IP}\",\"ttl\":1,\"proxied\":false}" | jq -r '.success')
|
--data "{\"type\":\"A\",\"name\":\"${SUBDOMAIN}\",\"content\":\"${HOME_SERVER_IP}\",\"ttl\":1,\"proxied\":false}" | jq -r '.success')
|
||||||
|
|
||||||
if [[ "${CREATION_STATUS}" == "true" ]]; then
|
if [[ "${CREATION_STATUS}" == "true" ]]; then
|
||||||
echo " ✅ Successfully create a DNS record for ${SUBDOMAIN}"
|
echo " ✅ Successfully created a DNS record for ${SUBDOMAIN}"
|
||||||
else
|
else
|
||||||
echo -e " ❌ Failed to create a DNS record for ${SUBDOMAIN}. Check documentation to \n
|
echo -e " ❌ Failed to create a DNS record for ${SUBDOMAIN}. Check documentation to \n
|
||||||
learn how you can create them manually."
|
learn how you can create them manually."
|
||||||
@@ -845,7 +845,7 @@ postrun_action() {
|
|||||||
REMOTE_PASS="changeMe!"
|
REMOTE_PASS="changeMe!"
|
||||||
|
|
||||||
echo -e "\n\n Now the remote machine will reboot. You will need to input the boot disk(s) passphrase.
|
echo -e "\n\n Now the remote machine will reboot. You will need to input the boot disk(s) passphrase.
|
||||||
This will be the only time you will have to do so, it will be automatic in the future."
|
This will be the only time you will have to do so, it will be automatic in the future."
|
||||||
|
|
||||||
gum spin --title "Rebooting the remote..." -- sleep 120
|
gum spin --title "Rebooting the remote..." -- sleep 120
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,8 @@
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p /mnt/config/ /mnt/data/ /home/numbus-admin/.numbus-server/
|
mkdir -p /mnt/config/ /mnt/data/ /mnt/data/nextcloud/
|
||||||
|
mkdir -p /home/numbus-admin/.numbus-server/
|
||||||
chown -R numbus-admin:users /mnt/config/
|
chown -R numbus-admin:users /mnt/config/
|
||||||
chown -R numbus-admin:users /mnt/data/
|
chown -R numbus-admin:users /mnt/data/
|
||||||
chown -R 100032:users /mnt/data/nextcloud/
|
chown -R 100032:users /mnt/data/nextcloud/
|
||||||
|
|||||||
@@ -4,9 +4,8 @@
|
|||||||
# Hostname
|
# Hostname
|
||||||
networking.hostName = "numbus-server";
|
networking.hostName = "numbus-server";
|
||||||
|
|
||||||
networking.wireless.enable = false;
|
|
||||||
networking.networkmanager.enable = false;
|
networking.networkmanager.enable = false;
|
||||||
services.resolved.enable = false;
|
networking.resolvconf.enable = false;
|
||||||
|
|
||||||
networking.nftables.enable = true;
|
networking.nftables.enable = true;
|
||||||
networking.firewall.enable = true;
|
networking.firewall.enable = true;
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ in
|
|||||||
gitea_backend:
|
gitea_backend:
|
||||||
volumes:
|
volumes:
|
||||||
- ${config_dir}:/data
|
- ${config_dir}:/data
|
||||||
- /etc/timezone:/etc/timezone:ro
|
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
environment:
|
environment:
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ in
|
|||||||
volumes:
|
volumes:
|
||||||
- ${config_dir}:/etc/pihole
|
- ${config_dir}:/etc/pihole
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
|
||||||
- SYS_NICE
|
- SYS_NICE
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
@@ -75,7 +74,7 @@ in
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "numbus-admin";
|
User = "numbus-admin";
|
||||||
Environment = [ "XDG_RUNTIME_DIR=/run/user/1000" ];
|
Environment = [ "XDG_RUNTIME_DIR=/run/user/1000" ];
|
||||||
AmbientCapabilities = "CAP_NET_ADMIN CAP_SYS_NICE";
|
AmbientCapabilities = "CAP_SYS_NICE";
|
||||||
LimitNICE = -20;
|
LimitNICE = -20;
|
||||||
Type = "exec";
|
Type = "exec";
|
||||||
# Pull the latest image before running
|
# Pull the latest image before running
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
# Loads default set of integrations. Do not remove.
|
||||||
|
default_config:
|
||||||
|
|
||||||
|
# Load frontend themes from the themes folder
|
||||||
|
frontend:
|
||||||
|
themes: !include_dir_merge_named themes
|
||||||
|
|
||||||
|
automation: !include automations.yaml
|
||||||
|
script: !include scripts.yaml
|
||||||
|
scene: !include scenes.yaml
|
||||||
|
|
||||||
|
http:
|
||||||
|
use_x_forwarded_for: true
|
||||||
|
trusted_proxies: 172.16.10.253
|
||||||
|
|
||||||
|
zha:
|
||||||
Reference in New Issue
Block a user