updated cron script and removed move onlyoffice code

This commit is contained in:
naturallaw77 2023-08-16 09:40:11 -07:00
parent d7fc189480
commit 8a32cd11d7
3 changed files with 2 additions and 19 deletions

View File

@ -287,12 +287,6 @@ in
tls internal tls internal
''; '';
}; };
"https://${personalization.onlyoffice_url}" = {
extraConfig = ''
reverse_proxy http://localhost:8000
'';
};
}; };
}; };
@ -373,8 +367,8 @@ backup /etc/nix-bitcoin-secrets/ localhost/
enable = true; enable = true;
systemCronJobs = [ systemCronJobs = [
"*/5 * * * * caddy /run/current-system/sw/bin/php -f /var/lib/www/nextcloud/cron.php" "*/5 * * * * caddy /run/current-system/sw/bin/php -f /var/lib/www/nextcloud/cron.php"
"*/15 * * * * root /var/lib/njalla/njalla.sh" "*/15 * * * * root /run/current-system/sw/bin/bash /var/lib/njalla/njalla.sh"
"*/15 * * * * root /var/lib/external_ip/external_ip.sh" "*/15 * * * * root /run/current-system/sw/bin/bash /var/lib/external_ip/external_ip.sh"
]; ];
}; };

View File

@ -26,7 +26,6 @@ mkdir /var/lib/domains
touch /var/lib/domains/btcpayserver touch /var/lib/domains/btcpayserver
touch /var/lib/domains/matrix touch /var/lib/domains/matrix
touch /var/lib/domains/nextcloud touch /var/lib/domains/nextcloud
touch /var/lib/domains/onlyoffice
touch /var/lib/domains/sslemail touch /var/lib/domains/sslemail
touch /var/lib/domains/vaultwarden touch /var/lib/domains/vaultwarden
touch /var/lib/domains/wordpress touch /var/lib/domains/wordpress
@ -53,10 +52,6 @@ echo -e "${GREEN}What is your New Vaultwarden domain name?${ENDCOLOR}"
read read
echo -n $REPLY > /var/lib/domains/vaultwarden echo -n $REPLY > /var/lib/domains/vaultwarden
echo -e "${GREEN}What is your New OnlyOffice domain name?${ENDCOLOR}"
read
echo -n $REPLY > /var/lib/domains/onlyoffice
echo -e "${GREEN}What is the email you would like to use to manage the SSL certificates for your domains?${ENDCOLOR}" echo -e "${GREEN}What is the email you would like to use to manage the SSL certificates for your domains?${ENDCOLOR}"
read read
echo -n $REPLY > /var/lib/domains/sslemail echo -n $REPLY > /var/lib/domains/sslemail
@ -154,7 +149,6 @@ touch /var/lib/secrets/matrixdb
touch /var/lib/secrets/turn touch /var/lib/secrets/turn
touch /var/lib/secrets/matrix_reg_secret touch /var/lib/secrets/matrix_reg_secret
touch /var/lib/secrets/main touch /var/lib/secrets/main
touch /var/lib/secrets/onlyofficejwtSecretFile
touch /var/lib/secrets/vaultwarden/vaultwarden.env touch /var/lib/secrets/vaultwarden/vaultwarden.env
touch /var/lib/secrets/external_ip touch /var/lib/secrets/external_ip
@ -164,7 +158,6 @@ echo -n $(pwgen -s 17 -1) > /var/lib/secrets/matrixdb
echo -n $(pwgen -s 17 -1) > /var/lib/secrets/turn echo -n $(pwgen -s 17 -1) > /var/lib/secrets/turn
echo -n $(pwgen -s 17 -1) > /var/lib/secrets/matrix_reg_secret echo -n $(pwgen -s 17 -1) > /var/lib/secrets/matrix_reg_secret
echo -n $(pwgen -s 17 -1) > /var/lib/secrets/main echo -n $(pwgen -s 17 -1) > /var/lib/secrets/main
echo -n $(pwgen -s 17 -1) > /var/lib/secrets/onlyofficejwtSecretFile
echo -n ADMIN_TOKEN=$(openssl rand -base64 48 echo -n ADMIN_TOKEN=$(openssl rand -base64 48
) > /var/lib/secrets/vaultwarden/vaultwarden.env ) > /var/lib/secrets/vaultwarden/vaultwarden.env
@ -222,8 +215,6 @@ chown mysql:mysql /var/lib/secrets/wordpressdb -R
chown vaultwarden:vaultwarden /var/lib/secrets/vaultwarden -R chown vaultwarden:vaultwarden /var/lib/secrets/vaultwarden -R
chown onlyoffice:onlyoffice /var/lib/secrets/onlyofficejwtSecretFile
chmod 770 /var/lib/secrets/ -R chmod 770 /var/lib/secrets/ -R

View File

@ -6,7 +6,6 @@ nextcloud_url = builtins.readFile /var/lib/domains/nextcloud;
btcpayserver_url = builtins.readFile /var/lib/domains/btcpayserver; btcpayserver_url = builtins.readFile /var/lib/domains/btcpayserver;
caddy_email_for_zerossl = builtins.readFile /var/lib/domains/sslemail; caddy_email_for_zerossl = builtins.readFile /var/lib/domains/sslemail;
vaultwarden_url = builtins.readFile /var/lib/domains/vaultwarden; vaultwarden_url = builtins.readFile /var/lib/domains/vaultwarden;
onlyoffice_url = builtins.readFile /var/lib/domains/onlyoffice;
## ##
@ -23,6 +22,5 @@ age.secrets.wordpressdb.file = /var/lib/agenix-secrets/wordpressdb.age;
## ##
external_ip_secret = /var/lib/secrets/external_ip; external_ip_secret = /var/lib/secrets/external_ip;
onlyofficejwtSecretFile = /var/lib/secrets/onlyofficejwtSecretFile;
} }