aboutsummaryrefslogtreecommitdiff
path: root/app/config-compose.yml
blob: f93b76ee64408228ff7acadcc7c9668195eef259 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
# Postgres Example
db_default:
  ENGINE: django.db.backends.postgresql
  NAME: dispatch
  USER: postgres
  PASSWORD: 
  HOST: postgres
  PORT: 5432
# MySQL Example
# db_default:
#   ENGINE: django.db.backends.mysql
#   NAME: dispatch_test
#   USER: dispatch
#   PASSWORD: ahB2lee5
#   HOST: 127.0.0.1
#   PORT: 3306
# Sqlite example. Full path is recommended
# db_default:
#   ENGINE: django.db.backends.sqlite3
#   NAME: /home/mitch/scm/dispatch-tracker/app/db.sqlite3

allowed_hosts:
  - localhost
  - 127.0.0.1
  - 172.21.23.2

static_root: '/static'

debug: True

# CHANGE THIS BEFORE USING IN PRODUCTION
SECRET_KEY: 'h$r_bwlp@#h#y#%&qhw-n=gb2%wva1d_h65+o94u&!a#%iv&lo'

# These people will be emailed if debug = false
admins:
  - 'bob@example.com'

application_name: "Yo Momma's Dispatch Tracker"
website_uri: 'http://172.21.23.2:8080'

ACCOUNT_ACTIVATION_DAYS: 7

# Email settings won't be loaded from this file if this is false
SET_EMAIL: False
# Email settings, edit for your needs
EMAIL_HOST: smtp.example.com
EMAIL_HOST_PASSWORD: p@$$w0rd9876543210
EMAIL_HOST_USER: django@example.com
EMAIL_PORT: 2525
EMAIL_USE_TLS: True
DEFAULT_FROM_EMAIL: webmaster@localhost

TEMPLATE_VARS:
    app_name: Subcontractor Invoicing System Demo
    # login_blurb: Login with "admin@example.com", "password"
    login_info: |
        <p class="flow-text">
            Welcome to a demo Subcontractor Invoicing system.
        </p>
        <p class="flow-text">
            We can design a system that customized specifically for your
            use case.
        </p>
        <p class="flow-text">
            <a href="https://mitchriedstra.com/resume">Please contact me</a>
            if you would like more information.  This version has been
            specifically designed for a trucking company that continues to
            use it more than two years after implementation.
        </p>
        </p>
        <script>
          /* Shh, it's a little bit of a hack */
          window.onload = function () {
            document.querySelector("#id_username").value="admin@example.com";
            document.querySelector("#id_password").value="password";
            document.querySelector("#id_username").parentElement.parentElement.hidden=true
            document.querySelector("#login_register").hidden=true
            document.querySelector('.card-title').innerText="Click below to start discovering";
            document.querySelector('#login_submit').parentElement.classList = [ 'center-align' ];
            document.querySelector('#login_submit').parentElement.style = "padding-top: 20px;";
            document.querySelector('#login_submit').value="LOGIN NOW!";
          }
        </script>