mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
Merge #304556: akkoma: make options work for 23.11 state
...into release-23.11
This commit is contained in:
@@ -777,6 +777,11 @@ in {
|
||||
default = if lib.versionOlder config.system.stateVersion "24.05"
|
||||
then "${httpConf.scheme}://${httpConf.host}:${builtins.toString httpConf.port}/media/"
|
||||
else null;
|
||||
defaultText = literalExpression ''
|
||||
if lib.versionOlder config.system.stateVersion "24.05"
|
||||
then "$\{httpConf.scheme}://$\{httpConf.host}:$\{builtins.toString httpConf.port}/media/"
|
||||
else null;
|
||||
'';
|
||||
description = mdDoc ''
|
||||
Base path which uploads will be stored at.
|
||||
Whilst this can just be set to a subdirectory of the main domain, it is now recommended to use a different subdomain.
|
||||
@@ -809,6 +814,7 @@ in {
|
||||
enabled = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
defaultText = literalExpression "false";
|
||||
description = mdDoc ''
|
||||
Whether to enable proxying of remote media through the instance's proxy.
|
||||
'';
|
||||
@@ -818,6 +824,11 @@ in {
|
||||
default = if lib.versionOlder config.system.stateVersion "24.05"
|
||||
then "${httpConf.scheme}://${httpConf.host}:${builtins.toString httpConf.port}/media/"
|
||||
else null;
|
||||
defaultText = literalExpression ''
|
||||
if lib.versionOlder config.system.stateVersion "24.05"
|
||||
then "$\{httpConf.scheme}://$\{httpConf.host}:$\{builtins.toString httpConf.port}/media/"
|
||||
else null;
|
||||
'';
|
||||
description = mdDoc ''
|
||||
Base path for the media proxy.
|
||||
Whilst this can just be set to a subdirectory of the main domain, it is now recommended to use a different subdomain.
|
||||
|
||||
Reference in New Issue
Block a user