Commit graph

49 commits

Author SHA1 Message Date
Andrey Golovizin
945ae8563b Serve (missing) favicon.ico with nginx 2020-03-10 18:06:47 +01:00
Andrey Golovizin
c2577dc1e1 Serve media with nginx 2020-03-10 17:28:04 +01:00
Andrey Golovizin
b6957198c1 Fix socket permissions 2020-03-10 16:51:16 +01:00
Andrey Golovizin
b9a2425d99 Remote the extra slash from the socket path 2020-03-10 16:42:20 +01:00
Andrey Golovizin
1429212c4a Move site hostnames into options 2020-03-10 16:41:59 +01:00
Andrey Golovizin
00decb5f92 Use systemd socket activation 2020-03-10 16:18:48 +01:00
Andrey Golovizin
ecb9d23d4c Include nginx config in the NixOS service
Static files are now served with nginx.
2020-03-10 15:50:15 +01:00
Andrey Golovizin
8ad1d1007e Respect STROJNADZOR_STATIC_ROOT env variable 2020-03-10 15:09:39 +01:00
Andrey Golovizin
709a329204 Make text slightly lighter 2020-03-09 21:04:09 +01:00
Andrey Golovizin
82f76d074e Add CSS for links 2020-03-09 21:03:48 +01:00
Andrey Golovizin
59f2add67f Switch from uvicorn to gunicorn 2020-03-09 20:32:08 +01:00
Andrey Golovizin
0787a6e10f Add Session.vim to .gitignore 2020-03-09 20:31:55 +01:00
Andrey Golovizin
2fcd163943 NixOS: properly create the state dir 2020-03-08 20:51:58 +01:00
Andrey Golovizin
284c713f5f Add NixOS module 2020-03-08 20:08:21 +01:00
Andrey Golovizin
32d8f78a09 Update souces 2020-03-08 20:07:52 +01:00
Andrey Golovizin
fca884f0ff Tweak CSS 2020-02-16 17:23:18 +01:00
Andrey Golovizin
a931b6db8a Edit and expant the word list 2020-02-16 16:45:33 +01:00
Andrey Golovizin
0929636f04 Customize captcha 2020-02-16 15:10:44 +01:00
Andrey Golovizin
719e99022a Remove filer debug options 2020-02-16 14:03:37 +01:00
Andrey Golovizin
9ddc4e5c9b Move to golovizin.ru and головизин.рф 2020-02-08 15:17:07 +01:00
Andrey Golovizin
e2a8936c6f Add STROJNADZOR_DATA_DIR environment variable 2020-02-08 14:25:52 +01:00
Andrey Golovizin
6b8e6cf480 fx management 2020-02-08 14:23:15 +01:00
Andrey Golovizin
8c6c5589ed Properly install templates and CSS styles 2020-02-08 14:16:17 +01:00
Andrey Golovizin
d8cdf6c140 Add runserver-uvicorn command 2020-02-08 14:11:59 +01:00
Andrey Golovizin
a9f51afeb7 Clean up requirements 2020-02-08 13:23:49 +01:00
Andrey Golovizin
5ed136073a Use nix-gitignore 2020-02-08 12:50:08 +01:00
Andrey Golovizin
ab237b7ceb Add default.nix 2020-02-08 12:36:46 +01:00
Andrey Golovizin
adbfe01b6b Ignore .egg-info 2020-02-08 12:30:59 +01:00
Andrey Golovizin
ecd0ca99c6 Initialize venv in .envrc 2020-02-08 12:30:08 +01:00
Andrey Golovizin
06dc231b73 Fix formatting 2020-02-08 12:28:12 +01:00
Andrey Golovizin
47066a7a95 Use niv 2020-02-08 11:59:03 +01:00
Andrey Golovizin
41b71d564a Remove broken pip hack 2020-02-08 11:58:43 +01:00
Andrey Golovizin
2b4a802a51 shell.nix: add pip from nixpkgs 2020-02-07 22:45:28 +01:00
Andrey Golovizin
023e892964 Reformat with black 2020-02-07 22:45:13 +01:00
Andrey Golovizin
ed72411c22 Add dist and venv to .gitignore 2020-02-07 22:31:22 +01:00
Andrey Golovizin
fece22b5ec Rename the package to strojnadzor 2020-02-07 22:30:28 +01:00
Andrey Golovizin
c975ca6f19 Convert into a proper Python package 2020-02-07 22:18:18 +01:00
Andrey Golovizin
ec175fe0c6 Port CSS to Tailwind 2020-02-07 20:45:32 +01:00
Andrej Golovizin
ec098fa934 Add Tailwind 2020-01-31 15:17:32 +01:00
Andrey Golovizin
22bf5c835b Configure DEFAULT_FROM_EMAIL 2020-01-25 19:20:37 +01:00
Andrey Golovizin
01639394f9 Customize form CSS 2020-01-25 18:55:48 +01:00
Andrey Golovizin
795e4a50d5 Configure captcha URL 2020-01-25 18:55:40 +01:00
Andrey Golovizin
97182d8257 Enable aldryn-forms in settings.py 2020-01-25 17:49:52 +01:00
Andrey Golovizin
0c27c67b9b Downgrade Django to 2.1
aldryn-forms is not compatible with 2.2 at the moment:

https://github.com/divio/aldryn-forms/issues/191
https://github.com/divio/aldryn-forms/issues/195
2020-01-25 17:38:49 +01:00
Andrey Golovizin
f2cbf27048 Add aldryn-forms to requirements 2020-01-25 16:50:47 +01:00
Andrey Golovizin
23bd67c4c3 Do not create venv in .envrc 2020-01-25 16:50:31 +01:00
Andrey Golovizin
0b59069714 Use simple permissions 2020-01-19 17:38:35 +01:00
Andrey Golovizin
ee3f27f7c2 Tweak the style 2020-01-19 16:54:43 +01:00
Andrey Golovizin
02ad5fed3d Initial commit 2020-01-19 15:58:54 +01:00