2018-04-30 18:42:17 +05:00
|
|
|
# Database configuration.
|
2018-05-27 12:25:01 +05:00
|
|
|
# Only MySQL database and flatfiles are supported for now.
|
2018-04-30 18:42:17 +05:00
|
|
|
database:
|
2018-05-27 12:25:01 +05:00
|
|
|
# Database type. The only supported ATM is "mysql" and "flatfiles".
|
|
|
|
type: "mysql"
|
|
|
|
# Path for data stored with "flatfiles" database adapter.
|
|
|
|
# Will be comletely ignored for MySQL/MariaDB.
|
|
|
|
path: "./data"
|
|
|
|
# Next parameters are strictly for MySQL/MariaDB connections and
|
|
|
|
# will be ignored by "flatfiles" adapter.
|
2018-04-30 18:42:17 +05:00
|
|
|
address: "localhost"
|
|
|
|
port: "3306"
|
|
|
|
username: "fastpastebin"
|
|
|
|
password: "fastpastebin"
|
|
|
|
database: "fastpastebin"
|
|
|
|
|
|
|
|
# Logging configuration.
|
|
|
|
logging:
|
|
|
|
# Write log additionally to file?
|
|
|
|
log_to_file: false
|
|
|
|
# Log file name.
|
|
|
|
filename: ""
|
|
|
|
# Log level. Acceptable parameters: DEBUG, INFO, WARN, ERROR, FATAL, PANIC.
|
|
|
|
loglevel: "DEBUG"
|
|
|
|
|
|
|
|
# HTTP server configuration.
|
|
|
|
http:
|
2018-05-27 12:25:01 +05:00
|
|
|
address: "192.168.0.14"
|
2018-04-30 18:42:17 +05:00
|
|
|
port: "25544"
|
|
|
|
# By default we're allowing only HTTPS requests. Setting this to true
|
|
|
|
# will allow HTTP requests. Useful for developing or if you're
|
|
|
|
# running Fast Pastebin behind reverse proxy that does SSL termination.
|
2018-05-27 12:25:01 +05:00
|
|
|
allow_insecure: true
|
|
|
|
|
|
|
|
# Pastes configuration.
|
|
|
|
pastes:
|
|
|
|
# Pastes per page.
|
|
|
|
pagination: 10
|