Skip to content

Commit

Permalink
Merge pull request #305155 from Mynacol/akkoma-fix-proxy
Browse files Browse the repository at this point in the history
nixos/akkoma: Fix media proxy URLs after upgrade
  • Loading branch information
LeSuisse authored Apr 25, 2024
2 parents c3ec6b8 + 774cd77 commit f8deac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/web-apps/akkoma.nix
Original file line number Diff line number Diff line change
Expand Up @@ -817,11 +817,11 @@ in {
base_url = mkOption {
type = types.nullOr types.nonEmptyStr;
default = if lib.versionOlder config.system.stateVersion "24.05"
then "${httpConf.scheme}://${httpConf.host}:${builtins.toString httpConf.port}/media/"
then "${httpConf.scheme}://${httpConf.host}:${builtins.toString httpConf.port}"
else null;
defaultText = literalExpression ''
if lib.versionOlder config.system.stateVersion "24.05"
then "$\{httpConf.scheme}://$\{httpConf.host}:$\{builtins.toString httpConf.port}/media/"
then "$\{httpConf.scheme}://$\{httpConf.host}:$\{builtins.toString httpConf.port}"
else null;
'';
description = ''
Expand Down

0 comments on commit f8deac7

Please sign in to comment.