Time tracking you can host anywhere, built on Django. Full export support in multiple formats and easily extensible.
djangodockerhandcodedpythonself-hostedtime-trackingtimetracker
1# Configuration
2
3## Security
4
5By default we don't enable TLS/SSL features since this project is often run on
6an intranet, locally, or in testing environments. If security is a concern of
7yours, and it should be, you will need to enable TLS/SSL on your reverse proxy
8and setup a certificate there. For an easy TLS enabled reverse proxy check out
9Caddy.
10
11You will need to configure two settings when you use TLS/SSL on this project.
12The first is to force TLS/SSL when people visit your site and the second is to
13make sure that Django REST framework returns corrected URLs behind a reverse
14proxy. These can be added to `timestrap/settings/base.py` anywhere:
15
16 SECURE_SSL_REDIRECT = True
17 SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
18
19## Email
20
21Email configuration options are available from the Timestrap admin on a
22per-site basis. These settings must be supplied to support features such as
23password reset. To access the settings, navigate to `/admin/sites/site/` and
24select the site to modify.
25
26### Email Docker
27
28You can configure email by setting environmental variables in the
29`docker-compose` config for `web`. These would be:
30
31- **EMAIL_HOST**
32- **EMAIL_HOST_USER**
33- **EMAIL_HOST_PASSWORD**
34- **EMAIL_PORT** defaults to port `25`
35- **EMAIL_USE_TLS** defaults to `False`, you can set this to `True`
36
37These would go where the `SECRET_KEY` environmental variable is set
38
39## Time and Date Localization
40
41Language and timezone settings are available on a per-site basis in the site
42configuration area (`/admin/sites/site/`). Timestrap uses [Moment.js](http://momentjs.com/)
43on the frontend so localization will be applied to all dates based on these
44settings. We'd like to eventually have localization of everything.