PhotosAPI/config_example.json

40 lines
1.3 KiB
JSON
Raw Normal View History

2022-12-20 02:22:32 +02:00
{
"database": {
"name": "photos",
"host": "127.0.0.1",
"port": 27017,
"user": null,
"password": null
},
"messages": {
"key_expired": "API key expired",
"key_invalid": "Invalid API key",
"key_valid": "Valid API key",
"bad_request": "Bad request. Read the docs at photos.end-play.xyz/docs",
2023-01-07 22:48:43 +02:00
"ip_blacklisted": "Your IP is blacklisted. Make sure you are using correct API address.",
"credentials_invalid": "Incorrect user or password",
"user_already_exists": "User with this username already exists.",
"email_confirmed": "Email confirmed. You can now log in.",
"email_code_invalid": "Confirmation code is invalid."
},
"external_address": "localhost",
"registration_enabled": true,
"registration_requires_confirmation": true,
"mailer": {
"smtp": {
"host": "",
"port": 0,
"sender": "",
"login": "",
"password": "",
"use_ssl": true,
"use_tls": false
},
"messages": {
"registration_confirmation": {
"subject": "Email confirmation",
"message": "To confirm your email please follow this link: {0}"
}
}
2022-12-20 02:22:32 +02:00
}
}