change deployment setup; notes, todo;

This commit is contained in:
Dobromir Popov
2024-05-23 02:48:09 +03:00
parent 08cc5498d5
commit 8b3f13d2ee
4 changed files with 15 additions and 3 deletions

View File

@ -55,10 +55,11 @@ services:
networks:
- infrastructure_default
command: |
"apk update && \
apk update && \
apk add --no-cache mariadb-client mariadb-connector-c && \
echo '0 2 * * * mysqldump -h $$MYSQL_HOST -P 3306 -u$$MYSQL_USER -p$$MYSQL_PASSWORD $$MYSQL_DATABASE > /backup/$$(date +\\%Y-\\%m-\\%d-\\%H\\%M\\%S)-$$MYSQL_DATABASE.sql' > /etc/crontabs/root && \
crond -f -d 8"
echo '0 7 * * * rclone sync /backup nextcloud:/mwitnessing' >> /etc/crontabs/root && \
crond -f -d 8
# wget -q https://github.com/prasmussen/gdrive/releases/download/2.1.0/gdrive-linux-x64 -O /usr/bin/gdrive && \
# chmod +x /usr/bin/gdrive && \
# gdrive about --service-account /root/.gdrive_service_account.json && \

View File

@ -7,5 +7,10 @@ server {
location / {
try_files $uri $uri/ /index.html;
# Prevent caching
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
add_header Pragma "no-cache";
add_header Expires "0";
}
}