diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-10-27 14:18:07 -0400 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-10-27 14:18:07 -0400 |
| commit | 03e24cccd0a897fb94d802eac194abb83e9aeb8e (patch) | |
| tree | 32e450db198381586b3e09eeb5874cb493289571 | |
| parent | 35f011758dd3445841f903eba8b69c61b78f5106 (diff) | |
| download | invidious-03e24cccd0a897fb94d802eac194abb83e9aeb8e.tar.gz invidious-03e24cccd0a897fb94d802eac194abb83e9aeb8e.tar.bz2 invidious-03e24cccd0a897fb94d802eac194abb83e9aeb8e.zip | |
Add support for configurable administrator email
| -rw-r--r-- | src/invidious.cr | 7 | ||||
| -rw-r--r-- | src/invidious/helpers/helpers.cr | 3 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/invidious.cr b/src/invidious.cr index d5be4ba1..aad08e40 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -5848,12 +5848,9 @@ end error 500 do |env| error_message = <<-END_HTML Looks like you've found a bug in Invidious. Feel free to open a new issue - <a href="https://github.com/omarroth/invidious/issues"> - here - </a> + <a href="https://github.com/omarroth/invidious/issues">here</a> or send an email to - <a href="mailto:omarroth@protonmail.com"> - omarroth@protonmail.com</a>. + <a href="mailto:#{CONFIG.admin_email}">#{CONFIG.admin_email}</a>. END_HTML templated "error" end diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.cr index c2282ec0..c14028b0 100644 --- a/src/invidious/helpers/helpers.cr +++ b/src/invidious/helpers/helpers.cr @@ -234,7 +234,8 @@ struct Config force_resolve: {type: Socket::Family, default: Socket::Family::UNSPEC, converter: FamilyConverter}, # Connect to YouTube over 'ipv6', 'ipv4'. Will sometimes resolve fix issues with rate-limiting (see https://github.com/ytdl-org/youtube-dl/issues/21729) port: {type: Int32, default: 3000}, # Port to listen for connections (overrided by command line argument) host_binding: {type: String, default: "0.0.0.0"}, # Host to bind (overrided by command line argument) - pool_size: {type: Int32, default: 100}, + pool_size: {type: Int32, default: 100}, # Pool size for HTTP requests to youtube.com and ytimg.com (each domain has a separate pool of `pool_size`) + admin_email: {type: String, default: "omarroth@protonmail.com"}, # Email for bug reports }) end |
