nixpkgs/nixos/modules/services
Maximilian Bosch 8a3c21bd82
nixos/matrix-synapse: fix type of settings.url_preview_url_blacklist
Actually, it's supposed to be `listOf (attrsOf str)` because each
list-item can match against multiple properties from `urlsplit`[1]. In
fact, `listOf str` breaks URL previews at runtime:

    Sep 14 15:03:47 soost synapse[1100355]: synapse.http.server: [GET-116] Failed handle request via 'PreviewUrlResource': <XForwardedForRequest at 0x7f691bd5f730 method='GET' uri='/_matrix/media/r0/preview_url?url=<redacted>' clientproto='HTTP/1.1' site='8448'>
                                            Traceback (most recent call last):
                                              [...]
                                              File "/nix/store/xk5yksbw09p6qwk0maq2cb2in3z6f4gn-matrix-synapse-1.91.2/lib/python3.10/site-packages/synapse/media/url_previewer.py", line 398, in _is_url_blocked
                                                for attrib, pattern in entry.items():
                                            AttributeError: 'str' object has no attribute 'items'

To make sure that people aren't confused when upgrading their configs, I
decided to work with `types.coercedTo` to "pretend" accepting the old
type signature, but then throwing an error explaining what to do (and
rejecting the broken configuration).

[1] https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urlsplit
2023-09-14 17:32:26 +02:00
..
admin
amqp
audio goxlr-utility: init module 2023-08-19 17:16:41 +03:00
backup Merge pull request #251062 from ajs124/restic-wrapper-script 2023-09-09 19:11:33 +02:00
blockchain/ethereum treewide: use more lib.optionalString 2023-04-07 13:38:33 +02:00
cluster treewide: stop using types.string 2023-08-08 21:31:21 +08:00
computing nixos/boinc: add boinc-headless example to package option 2023-07-18 21:47:12 +01:00
continuous-integration Merge pull request #249964 from ambroisie/woodpecker-improvements 2023-09-09 19:30:34 +02:00
databases nixos/surrealdb: incorporate beta 10 changes 2023-09-07 08:57:41 +00:00
desktops nixos: fix typos 2023-05-19 22:31:04 -04:00
development zammad: link test in passthru.tests 2023-05-17 16:06:50 +02:00
display-managers
editors emacs: remove outdated doc about package initialization 2023-08-25 10:22:30 +00:00
finance odoo: 15.20230317 -> 16.20230722 2023-08-26 10:22:57 +02:00
games Merge pull request #250100 from NixOS/ioquake3/update 2023-08-19 12:31:33 +02:00
hardware Merge pull request #253048 from Mic92/openrbg 2023-09-07 22:55:34 +02:00
home-automation Merge pull request #246201 from n0emis/zigbee2mqtt-groups-file 2023-09-09 20:19:50 +02:00
logging nixos/logrotate: add extraArgs option 2023-09-05 16:04:07 +02:00
mail nixos/listmonk: fixing datatype of options 2023-09-09 15:21:32 +02:00
matrix nixos/matrix-synapse: fix type of settings.url_preview_url_blacklist 2023-09-14 17:32:26 +02:00
misc nixos/cfdyndns: add option to use CF token 2023-09-09 12:20:14 +00:00
monitoring nixos/mimir: add extraFlags option 2023-09-04 20:26:02 +00:00
network-filesystems Merge pull request #246029 from ehmry/eris-go 2023-08-08 06:18:03 +02:00
networking Merge pull request #253427 from Yarny0/sshd-requiredrsasize 2023-09-11 17:40:23 +02:00
printing cups: add xdg-open as dependency package as substitution does not work 2023-07-13 15:37:00 +02:00
scheduling treewide: use optionalString instead of 'then ""' 2023-06-24 20:19:19 +02:00
search nixos/typesense: init at 0.24.1 2023-07-22 16:38:13 +02:00
security nixos/kanidm: fix broken doc links 2023-08-31 14:03:30 +03:00
system nixos/zram-generator: drop outdated comments 2023-08-24 08:47:19 +08:00
torrent nixos/deluge: fix typo 2023-05-09 18:02:17 +04:00
tracing nixos/tempo: add extraFlags option 2023-08-14 18:07:24 +02:00
ttys treewide: rename fonts.fonts to fonts.packages 2023-07-24 17:34:39 +02:00
video nixos/mediamtx: refactor 2023-08-10 20:16:11 +02:00
wayland nixos/cage: add environment config 2023-05-28 23:36:22 +02:00
web-apps nixos/meme-bingo-web: init service 2023-09-12 02:45:58 +00:00
web-servers nixos/nginx: fix services.nginx.defaultListen description 2023-09-03 16:45:10 +02:00
x11 oroborus: remove 2023-09-11 01:56:45 +00:00