README
This commit is contained in:
@@ -193,7 +193,7 @@ UUID=6fb3bc60-e984-43ce-a688-151b49f558e0 /home/null/shares/disk2 auto defaults,
|
||||
|
||||
After adding the domain name to the docker-compose.yml and the gitlab configuration:
|
||||
|
||||
``` yaml
|
||||
```yaml
|
||||
hostname: 'gitlab.knast.cc'
|
||||
environment:
|
||||
GITLAB_OMNIBUS_CONFIG: |
|
||||
@@ -216,14 +216,14 @@ edit the nextcloud config.php to use the https protocol
|
||||
nano /srv/nextcloud/config/config.php
|
||||
```
|
||||
|
||||
```sh
|
||||
|
||||
We also use traefik and docker. I have added the following traefik label in our docker-compose.yml:
|
||||
|
||||
```yml
|
||||
- "traefik.http.middlewares.nc-header.headers.customRequestHeaders.X-Forwarded-Proto=https"
|
||||
```
|
||||
|
||||
|
||||
```sh
|
||||
And in the config.php, I’ve also added some values regarding reverse proxies:
|
||||
|
||||
'forwarded_for_headers' =>
|
||||
@@ -268,15 +268,9 @@ volumes:
|
||||
NOTE: Just switch to syncthing
|
||||
|
||||
```sh
|
||||
#SYNC MOVIES FROM UNITY TO DISK 2
|
||||
# CRON JOB
|
||||
|
||||
* * * * * /usr/bin/flock -n /tmp/classics.lockfile /home/$USER/home_server/scripts/sync_classics.sh
|
||||
* * * * * /usr/bin/flock -n /tmp/flims.lockfile /home/$USER/home_server/scripts/sync_flims.sh
|
||||
* * * * * /usr/bin/flock -n /tmp/tv.lockfile /home/$USER/home_server/scripts/sync_tv.sh
|
||||
|
||||
# movie_sync.sh CONTENT
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -307,11 +301,9 @@ echo "CRON TV FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/null/logs
|
||||
|
||||
*/25 * * * * /usr/bin/chmod -v 0777 -R /home/knast/shares/disk1/tv/* > /home/knast/logs/tv_chmod.log
|
||||
|
||||
```
|
||||
|
||||
```sh
|
||||
|
||||
# tv_sync.sh CONTENT
|
||||
|
||||
#!/bin/bash
|
||||
echo "STARTING TV FILE SYNC RAN AT: " `date '+%Y-%m-%d %H:%M:%S'` >> /home/null/logs/tv_cron.log
|
||||
/usr/bin/rsync -ravz --bwlimit=5000 --stats --progress --exclude='/home/null/shares/disk2/media/tv' -e "ssh -i /home/null/.ssh/id_rsa_sync " 'invalid@unity.whatbox.ca:/home/invalid/files/_tv' '/home/null/shares/disk2/media/tv' >> /home/null/logs/tv_cron.log
|
||||
|
||||
Reference in New Issue
Block a user