init commit
This commit is contained in:
parent
ae639426d0
commit
7a491681cc
257 changed files with 95524 additions and 80 deletions
15
conf/example/camo.toml
Normal file
15
conf/example/camo.toml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Configuration for proxying images to a camo (or camo-compatible) proxy server.
|
||||
# To use, copy to conf/camo.toml.
|
||||
# More info on camo: https://github.com/atmos/camo
|
||||
[camo]
|
||||
enabled = true
|
||||
server = 'https://my-camo-server'
|
||||
# The key must match the `CAMO_KEY` environment variable passed to the camo server.
|
||||
key = 'ABCDEFGH'
|
||||
# Bypass the proxy for domains you trust that already support HTTPS and won't be harmful to users.
|
||||
whitelisted-domains = [
|
||||
'i.imgur.com',
|
||||
'i.4cdn.org'
|
||||
]
|
||||
# Whether to use URL encoding ("url") or hex encoding ("hex") for the target URL.
|
||||
encoding = 'url'
|
||||
9
conf/example/captcha.toml
Normal file
9
conf/example/captcha.toml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[hcaptcha]
|
||||
# Site key from hCaptcha. The value here by default is the dummy test key for local testing
|
||||
site-key = "10000000-ffff-ffff-ffff-000000000001"
|
||||
# Secret key from hCaptcha. The value here by default is the dummy test key for local testing
|
||||
secret = "0x0000000000000000000000000000000000000000"
|
||||
|
||||
[register]
|
||||
# Whether to require a captcha for registration
|
||||
enabled = true
|
||||
66
conf/example/email.toml
Normal file
66
conf/example/email.toml
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
# SMTP configuration for sending mail
|
||||
[smtp]
|
||||
host = 'smtp.gmail.com'
|
||||
port = 465
|
||||
secure = true
|
||||
user = 'some-user@example.com'
|
||||
password = 'secretpassword'
|
||||
|
||||
# Email configuration for password reset emails
|
||||
# Be sure to update both html-template AND text-template
|
||||
# nodemailer will send both and the email client will render whichever one is supported
|
||||
[password-reset]
|
||||
enabled = true
|
||||
|
||||
# Template to use for HTML-formatted emails
|
||||
# $user$ will be replaced by the username for which the reset was requested
|
||||
# $url$ will be replaced by the password reset confirmation link
|
||||
html-template = """
|
||||
Hi $user$,<br>
|
||||
<br>
|
||||
A password reset was requested for your account on CHANGE ME. You can complete the reset by opening the following link in your browser: <a href="$url$">$url$</a><br>
|
||||
<br>
|
||||
This link will expire in 24 hours.<br>
|
||||
<br>
|
||||
This email address is not monitored for replies. For assistance with password resets, please <a href="http://example.com/contact">contact an administrator</a>.
|
||||
"""
|
||||
|
||||
# Template to use for plaintext emails
|
||||
# Same substitutions as the HTML template
|
||||
text-template = """
|
||||
Hi $user$,
|
||||
|
||||
A password reset was requested for your account on CHANGE ME. You can complete the reset by opening the following link in your browser: $url$
|
||||
|
||||
This link will expire in 24 hours.
|
||||
|
||||
This email address is not monitored for replies. For assistance with password resets, please contact an administrator. See http://example.com/contact for contact information.
|
||||
"""
|
||||
|
||||
from = "Example Website <website@example.com>"
|
||||
subject = "Password reset request"
|
||||
|
||||
# Email configuration for account deletion request notifications
|
||||
[delete-account]
|
||||
enabled = true
|
||||
|
||||
html-template = """
|
||||
Hi $user$,
|
||||
<br>
|
||||
<br>
|
||||
Account deletion was requested for your account on CHANGE ME. Your account will be automatically deleted in 7 days without any further action from you.
|
||||
<br>
|
||||
<br>
|
||||
This email address is not monitored for replies. For assistance, please <a href="http://example.com/contact">contact an administrator</a>.
|
||||
"""
|
||||
|
||||
text-template = """
|
||||
Hi $user$,
|
||||
|
||||
Account deletion was requested for your account on CHANGE ME. Your account will be automatically deleted in 7 days without any further action from you.
|
||||
|
||||
This email address is not monitored for replies. For assistance, please contact an administrator. See http://example.com/contact for contact information.
|
||||
"""
|
||||
|
||||
from = "Example Website <website@example.com>"
|
||||
subject = "Account deletion request"
|
||||
14
conf/example/prometheus.toml
Normal file
14
conf/example/prometheus.toml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Configuration for binding an HTTP server to export prometheus metrics.
|
||||
# See https://prometheus.io/ and https://github.com/siimon/prom-client
|
||||
# for more details.
|
||||
[prometheus]
|
||||
enabled = true
|
||||
# Host, port to bind. This is separate from the main CyTube HTTP server
|
||||
# because it may be desirable to bind a different IP/port for monitoring
|
||||
# purposes. Default: localhost port 19820 (arbitrary port chosen not to
|
||||
# conflict with existing prometheus exporters).
|
||||
host = '127.0.0.1'
|
||||
port = 19820
|
||||
# Request path to serve metrics. All other paths are rejected with
|
||||
# 400 Bad Request.
|
||||
path = '/metrics'
|
||||
Loading…
Add table
Add a link
Reference in a new issue