New:
Snibox
This commit is contained in:
18
snibox/files/.env
Normal file
18
snibox/files/.env
Normal file
@ -0,0 +1,18 @@
|
||||
# Secrets
|
||||
SECRET_KEY_BASE=df646c2613b559ae1785672bac90737be0980f7b76c04943550e70b750d8d2d2
|
||||
# SSL
|
||||
FORCE_SSL=false
|
||||
# Database
|
||||
DB_NAME=snibox
|
||||
DB_USER=postgres
|
||||
DB_PASS=123456
|
||||
DB_HOST=db
|
||||
DB_PORT=5432
|
||||
# Mailgun. Required by 'Reset password feature'. Feel free to start without this setup.
|
||||
MAILGUN_SMTP_PORT=587
|
||||
MAILGUN_SMTP_SERVER=smtp.mailgun.org
|
||||
MAILGUN_SMTP_LOGIN=
|
||||
MAILGUN_SMTP_PASSWORD=
|
||||
MAILGUN_API_KEY=
|
||||
MAILGUN_DOMAIN=
|
||||
MAILGUN_PUBLIC_KEY=
|
||||
27
snibox/files/nginx.conf.j2
Normal file
27
snibox/files/nginx.conf.j2
Normal file
@ -0,0 +1,27 @@
|
||||
server {
|
||||
|
||||
listen 80;
|
||||
server_name {{ http_host }};
|
||||
|
||||
# Allow large attachments
|
||||
client_max_body_size 128M;
|
||||
|
||||
location @proxy-backend {
|
||||
proxy_pass http://proxy_backend;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Port $server_port;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
proxy_redirect off;
|
||||
}
|
||||
location / {
|
||||
root /var/lib/{{ host_directory }}/frontend;
|
||||
index index.html index.htm;
|
||||
try_files $uri/index.html $uri @proxy-backend;
|
||||
}
|
||||
}
|
||||
|
||||
upstream proxy_backend {
|
||||
server localhost:3003;
|
||||
}
|
||||
Reference in New Issue
Block a user