Merge pull request #184003 from Izorkin/update-peertube
peertube: 4.2.1 -> 4.2.2
This commit is contained in:
commit
0ac85cc7e8
2 changed files with 7 additions and 3 deletions
|
@ -11,6 +11,7 @@ let
|
||||||
NODE_CONFIG_DIR = "/var/lib/peertube/config";
|
NODE_CONFIG_DIR = "/var/lib/peertube/config";
|
||||||
NODE_ENV = "production";
|
NODE_ENV = "production";
|
||||||
NODE_EXTRA_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt";
|
NODE_EXTRA_CA_CERTS = "/etc/ssl/certs/ca-certificates.crt";
|
||||||
|
NPM_CONFIG_CACHE = "/var/cache/peertube/.npm";
|
||||||
NPM_CONFIG_PREFIX = cfg.package;
|
NPM_CONFIG_PREFIX = cfg.package;
|
||||||
HOME = cfg.package;
|
HOME = cfg.package;
|
||||||
};
|
};
|
||||||
|
@ -425,6 +426,9 @@ in {
|
||||||
# State directory and mode
|
# State directory and mode
|
||||||
StateDirectory = "peertube";
|
StateDirectory = "peertube";
|
||||||
StateDirectoryMode = "0750";
|
StateDirectoryMode = "0750";
|
||||||
|
# Cache directory and mode
|
||||||
|
CacheDirectory = "peertube";
|
||||||
|
CacheDirectoryMode = "0750";
|
||||||
# Access write directories
|
# Access write directories
|
||||||
ReadWritePaths = cfg.dataDirs;
|
ReadWritePaths = cfg.dataDirs;
|
||||||
# Environment
|
# Environment
|
||||||
|
|
|
@ -6,18 +6,18 @@ let
|
||||||
if stdenv.hostPlatform.system == "x86_64-linux" then "linux-x64"
|
if stdenv.hostPlatform.system == "x86_64-linux" then "linux-x64"
|
||||||
else throw "Unsupported architecture: ${stdenv.hostPlatform.system}";
|
else throw "Unsupported architecture: ${stdenv.hostPlatform.system}";
|
||||||
|
|
||||||
version = "4.2.1";
|
version = "4.2.2";
|
||||||
|
|
||||||
source = fetchFromGitHub {
|
source = fetchFromGitHub {
|
||||||
owner = "Chocobozzz";
|
owner = "Chocobozzz";
|
||||||
repo = "PeerTube";
|
repo = "PeerTube";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-bb22/GidSPaRtvbht6FzVqTGzzNDYgBdHqHGnzA1Iy0=";
|
sha256 = "sha256-q6wSk5AO91Z6dw5MgpO7QTAlA8Q5Xx1CboBr7SElVUA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
yarnOfflineCacheServer = fetchYarnDeps {
|
yarnOfflineCacheServer = fetchYarnDeps {
|
||||||
yarnLock = "${source}/yarn.lock";
|
yarnLock = "${source}/yarn.lock";
|
||||||
sha256 = "sha256-7fYQ4YS92XbzeI7nwpQfI2reDp6EiDgncK5YGSWzHF0=";
|
sha256 = "sha256-MMsxh20jcbW4YYsJyoupKbT9+Xa1BWZAmYHoj2/t+LM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
yarnOfflineCacheTools = fetchYarnDeps {
|
yarnOfflineCacheTools = fetchYarnDeps {
|
||||||
|
|
Loading…
Reference in a new issue