forked from midou/invidious
Add support for configurable administrator email
This commit is contained in:
parent
35f011758d
commit
03e24cccd0
@ -5848,12 +5848,9 @@ end
|
|||||||
error 500 do |env|
|
error 500 do |env|
|
||||||
error_message = <<-END_HTML
|
error_message = <<-END_HTML
|
||||||
Looks like you've found a bug in Invidious. Feel free to open a new issue
|
Looks like you've found a bug in Invidious. Feel free to open a new issue
|
||||||
<a href="https://github.com/omarroth/invidious/issues">
|
<a href="https://github.com/omarroth/invidious/issues">here</a>
|
||||||
here
|
|
||||||
</a>
|
|
||||||
or send an email to
|
or send an email to
|
||||||
<a href="mailto:omarroth@protonmail.com">
|
<a href="mailto:#{CONFIG.admin_email}">#{CONFIG.admin_email}</a>.
|
||||||
omarroth@protonmail.com</a>.
|
|
||||||
END_HTML
|
END_HTML
|
||||||
templated "error"
|
templated "error"
|
||||||
end
|
end
|
||||||
|
@ -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)
|
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)
|
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)
|
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
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user