admin-fe: disable unused features
This commit is contained in:
parent
f436f8fcdb
commit
ed5fdace2f
4 changed files with 27 additions and 1 deletions
|
@ -49,7 +49,7 @@
|
||||||
ref = "5f0339ce00";
|
ref = "5f0339ce00";
|
||||||
};
|
};
|
||||||
admin = {
|
admin = {
|
||||||
package = pkgs.akkoma-frontends.admin-fe;
|
package = pkgs.akkoma-admin-fe;
|
||||||
name = "admin-fe";
|
name = "admin-fe";
|
||||||
ref = "stable";
|
ref = "stable";
|
||||||
};
|
};
|
||||||
|
@ -247,6 +247,12 @@
|
||||||
};
|
};
|
||||||
locations."^/media(/.*)$".return = "308 https://media.florp.social$1";
|
locations."^/media(/.*)$".return = "308 https://media.florp.social$1";
|
||||||
locations."^/proxy(/.*)$".return = "308 https://cache.florp.social$1";
|
locations."^/proxy(/.*)$".return = "308 https://cache.florp.social$1";
|
||||||
|
locations."= /api/v1/pleroma/admin/config" = {
|
||||||
|
return = "200 {\"error\":\"You must enable configurable_from_database in your config file.\"}";
|
||||||
|
extraConfig = ''
|
||||||
|
types { } default_type "application/json; charset=utf-8";
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
"media.florp.social" = {
|
"media.florp.social" = {
|
||||||
|
|
7
pkgs/akkoma-admin-fe/default.nix
Normal file
7
pkgs/akkoma-admin-fe/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
akkoma-frontends
|
||||||
|
}:
|
||||||
|
|
||||||
|
akkoma-frontends.admin-fe.overrideAttrs {
|
||||||
|
patches = [ ./disable-options.patch ];
|
||||||
|
}
|
12
pkgs/akkoma-admin-fe/disable-options.patch
Normal file
12
pkgs/akkoma-admin-fe/disable-options.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
diff --git a/config/prod.env.js b/config/prod.env.js
|
||||||
|
index 7acb93a2..ea500e99 100644
|
||||||
|
--- a/config/prod.env.js
|
||||||
|
+++ b/config/prod.env.js
|
||||||
|
@@ -2,6 +2,6 @@ module.exports = {
|
||||||
|
NODE_ENV: '"production"',
|
||||||
|
ENV_CONFIG: '"prod"',
|
||||||
|
BASE_API: '"https://api-prod"',
|
||||||
|
- DISABLED_FEATURES: '[""]',
|
||||||
|
+ DISABLED_FEATURES: '["settings","media-proxy-cache","relays"]',
|
||||||
|
ASSETS_PUBLIC_PATH: '/pleroma/admin/'
|
||||||
|
}
|
|
@ -6,6 +6,7 @@ final: prev: {
|
||||||
librespeed-rust = final.callPackage ./librespeed-rust/default.nix {};
|
librespeed-rust = final.callPackage ./librespeed-rust/default.nix {};
|
||||||
librespeed-go = final.callPackage ./librespeed-go/default.nix {};
|
librespeed-go = final.callPackage ./librespeed-go/default.nix {};
|
||||||
akkoma-fe-domi = final.callPackage ./akkoma-fe-domi/default.nix {};
|
akkoma-fe-domi = final.callPackage ./akkoma-fe-domi/default.nix {};
|
||||||
|
akkoma-admin-fe = final.callPackage ./akkoma-admin-fe/default.nix {};
|
||||||
nginxQuic = prev.nginxQuic.override {
|
nginxQuic = prev.nginxQuic.override {
|
||||||
withSlice = true;
|
withSlice = true;
|
||||||
# Use zlib because zlib-ng uses larger buffers then nginx preallocates.
|
# Use zlib because zlib-ng uses larger buffers then nginx preallocates.
|
||||||
|
|
Loading…
Reference in a new issue