From 7cd8129435f774359794667ceaf94289db1af577 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Sun, 30 Sep 2018 21:19:02 +0530 Subject: [PATCH] changed path while creating password --- conf/production.yaml | 10 +++++++--- conf/systemd.service | 3 +-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/conf/production.yaml b/conf/production.yaml index a980c17..45d5ff8 100644 --- a/conf/production.yaml +++ b/conf/production.yaml @@ -73,6 +73,8 @@ trending: # Once you have defined your strategies, choose which instances you want to cache in admin -> manage follows -> following redundancy: videos: + check_interval: '10 hour' # How often you want to check new videos to cache + strategies: # - # size: '10GB' # strategy: 'most-views' # Cache videos that have the most views @@ -80,9 +82,11 @@ redundancy: # size: '10GB' # strategy: 'trending' # Cache trending videos # - -# size: '10GB' -# strategy: 'recently-added' # Cache recently added videos -# minViews: 10 # Having at least x views + size: '1GB' + # Minimum time the video must remain in the cache. Only accept values > 10 hours (to not overload remote instances) + min_lifetime: '48 hours' + strategy: 'recently-added' # Cache recently added videos + minViews: 10 # Having at least x views diff --git a/conf/systemd.service b/conf/systemd.service index 6a62bf5..1c67d11 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -8,8 +8,7 @@ Environment=NODE_ENV=production Environment=NODE_CONFIG_DIR=__FINALPATH__/config User=__APP__ Group=__APP__ -Environment="PATH=__ENV_PATH__" -ExecStart=/bin/sh -c 'npm start' +ExecStart=/bin/sh -c '/usr/bin/npm start' WorkingDirectory=__FINALPATH__/ StandardOutput=syslog StandardError=syslog