Commit Graph

41 Commits

Author SHA1 Message Date
Alexandre Iooss 466cbd9878 Replace Font Awesome with inline SVG icons
Font Awesome 4 adds 106kB of dependencies on each page and require to
query multiple assets. It also sometimes causes icons to appear after
page loading. Font Awesome 4 is deprecated and replaced by version 5
which is not packaged in every GNU/Linux distributions.

This commit replaces icons with inline SVG which does not require
external assets, does not require an additionnal dependency and is
widely supported by modern browsers. It makes the page loading faster
and enables us to no longer require fonts-font-awesome Debian package.
2021-10-06 17:15:33 +02:00
Yohann D'ANELLO df3bb71357
Serve static files with Nginx only in production to make JavaScript development easier
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-10-04 13:58:48 +02:00
ynerant 8d71783c42 Merge branch 'docs' into 'beta'
Docs

See merge request bde/nk20!145
2021-01-19 12:01:45 +01:00
Yohann D'ANELLO dfbf9972c2
By default, automatically change directory to /var/www/note_kfet and source the Python virtual environment in the .bashrc file
Signed-off-by: Yohann D'ANELLO <yohann.danello@gmail.com>
2020-12-29 23:27:51 +01:00
Yohann D'ANELLO b5f3b3ffc1
Use Nginx certbot challenge
Signed-off-by: Yohann D'ANELLO <yohann.danello@gmail.com>
2020-12-29 21:44:28 +01:00
Yohann D'ANELLO 3aad4e7398
Agree Let's Encrypt ToS
Signed-off-by: Yohann D'ANELLO <yohann.danello@gmail.com>
2020-12-29 21:41:29 +01:00
ynerant c0c64f225c Merge branch 'ansible-fix' into 'beta'
Ansible fix

See merge request bde/nk20!139
2020-12-29 20:01:43 +01:00
Yohann D'ANELLO 6b2638c271
Documentation is located on /doc
Signed-off-by: Yohann D'ANELLO <yohann.danello@gmail.com>
2020-12-23 15:20:30 +01:00
Yohann D'ANELLO 37efebe85b Ansible builds and deploys the documentation 2020-11-26 02:49:57 +01:00
Yohann D'ANELLO 8434c0062c Merge branch 'beta' into JS_translations
# Conflicts:
#	apps/note/static/note/js/consos.js
#	locale/de/LC_MESSAGES/django.po
#	locale/es/LC_MESSAGES/django.po
#	locale/fr/LC_MESSAGES/django.po
2020-11-16 00:59:26 +01:00
Yohann D'ANELLO b9d49d53f2 Export JS translation files as static files 2020-11-16 00:29:27 +01:00
Pierre-antoine Comby e1f647bd02 lesser hardcoded 2020-10-30 21:28:25 +01:00
Pierre-antoine Comby 39fd3a2471 set DB_PASSWORD in env file 2020-10-30 20:54:41 +01:00
Pierre-antoine Comby cbf7e6fe6c run certbot if necessary 2020-10-30 17:01:47 +01:00
Pierre-antoine Comby 950922d041 do not hardcode mail 2020-10-30 17:01:26 +01:00
Pierre-antoine Comby 78fe070cd3 use debian backport only with debian 2020-10-30 16:59:44 +01:00
Alexandre Iooss 3d733ed6af
Use memcached cache 2020-09-21 15:13:43 +02:00
Alexandre Iooss 70448db8e5
Remove Django CAS server and add oauth toolkit 2020-09-21 10:31:42 +02:00
Alexandre Iooss dcdd8e56e8 Migrate LaTeX to XeTeX 2020-09-06 15:30:12 +02:00
Yohann D'ANELLO 1a28e876b8 Rework on Ansible config, this is now more universal 2020-09-06 10:32:52 +02:00
Yohann D'ANELLO a64dc9ffc2 Certbot and Nginx disappeared in Ansible conf 2020-09-06 09:38:27 +02:00
Yohann D'ANELLO 3af083fb6b Remove temporary bera font in invoices, add texlive-base-recommended for invoices 2020-09-05 10:34:19 +02:00
Yohann D'ANELLO 8c23726f88 Don't rebuild systematically migrations 2020-09-05 10:07:32 +02:00
Yohann D'ANELLO 0f47412c38 Fix Ansible script for production 2020-09-04 22:37:18 +02:00
Alexandre Iooss cf7101fc0f Less deps in README and ansible role 2020-09-02 12:57:46 +02:00
Alexandre Iooss 646c23ccb8 Fix note.cron in ansible 2020-09-01 16:42:53 +02:00
Alexandre Iooss 5efb150583 Update Ansible packages 2020-09-01 16:32:13 +02:00
Alexandre Iooss 6de46a9264 Remove useless nginx/uwsgi config 2020-09-01 14:19:38 +02:00
Alexandre Iooss 2acb47c516 Base docker on Debian Buster 2020-09-01 11:23:56 +02:00
Yohann D'ANELLO 0b46140771 Cron file must be owned by root 2020-08-06 08:21:05 +02:00
Yohann D'ANELLO 8b66bcc3d5 Fix cron 2020-08-05 23:50:30 +02:00
Yohann D'ANELLO 6759586ef3 Setup crons 2020-08-05 23:19:30 +02:00
Yohann D'ANELLO 5c2df41640 Fix Ansible 2020-08-01 16:32:26 +02:00
Yohann D'ANELLO b49db39080 Update Nginx conf: redirect automatically requests to the right domain 2020-07-29 23:00:57 +02:00
Yohann D'ANELLO 0335a47667 Anonymize data, fix remittance import, better Ansible 2020-07-26 12:05:41 +02:00
Yohann D'ANELLO 3fea17c555 🐛 Fix Ansible script 2020-07-25 17:36:37 +02:00
Yohann D'ANELLO 5d70a809c2 🔧 Better Ansible script 2020-07-21 22:36:37 +02:00
Yohann D'ANELLO 4761d46696 🎨 Apply Django migrations 2020-07-15 11:32:08 +02:00
Yohann D'ANELLO 084d22d33f Install PSQL and init DB 2020-07-15 10:09:28 +02:00
Yohann D'ANELLO 3f0208a664 🐛 First fix Ansible installation 2020-07-15 09:27:11 +02:00
Yohann D'ANELLO cdc053718f 🚀 Adding Ansible configuration (not tested) 2020-07-15 07:46:42 +02:00