Dockerize the app

This commit is contained in:
Timur Demin
2019-07-08 08:41:03 +05:00
parent 4f01e2f5ce
commit dbf82e213b
4 changed files with 84 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
database:
type: "mysql"
path: "./data"
address: "database"
port: "3306"
username: "fastpastebin"
password: "fastpastebin"
database: "fastpastebin"
logging:
log_to_file: false
filename: ""
# Log level. Acceptable parameters: DEBUG, INFO, WARN, ERROR, FATAL, PANIC.
loglevel: "DEBUG"
http:
address: "0.0.0.0"
port: "25544"
allow_insecure: true
pastes:
pagination: 10

10
examples/nginx.conf Normal file
View File

@@ -0,0 +1,10 @@
server {
listen 80 default_server;
location / {
proxy_pass http://fastpastebin:25544;
proxy_set_header Host $Host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}