Commit Graph

58 Commits

Author SHA1 Message Date
nemunaire e8f6a03cd9 settings: Rename struct to remove FIC occurence 2022-05-01 22:15:16 +02:00
nemunaire 15afbb8b87 settings: Use pointer 2022-05-01 21:32:19 +02:00
nemunaire 995740e275 admin: Add a new option -4real to avoid mass progression deletion 2021-12-11 02:02:06 +01:00
nemunaire 89ca192890 sync: Add Git Importer 2021-11-14 17:30:29 +01:00
nemunaire aebfb7bf96 sync: Add Init and Sync functions
Init initializes the directory/repository before the first use.
Sync is called to unsure the directory is up-to-date.
2021-11-14 17:30:29 +01:00
nemunaire 5eeb1a6297 admin: Handle team password 2021-09-09 11:21:29 +02:00
nemunaire 3c42bef298 CI: Fix compilation problems 2021-09-01 01:49:28 +02:00
nemunaire 8f1b44e3dd New env variable FIC_BASEURL to change the base URL 2021-07-22 16:17:03 +02:00
nemunaire 7fc860edec admin: Embed static assets into binary 2021-06-09 23:26:40 +02:00
nemunaire 1436d9ca81 admin: New route to reset settings to sane default values 2020-11-13 11:34:31 +01:00
nemunaire 64b9e9a251 New option to disallow team creation: join only 2020-05-16 03:51:36 +02:00
nemunaire 9186bbc229 frontend: add players possibility to report problems with exercices 2020-01-23 18:27:14 +01:00
nemunaire 5dcb13629a admin: display on interface time synchronization diff 2020-01-17 14:57:03 +01:00
Tristan Ruter-Naon cb7f3326c4 admin: fix typo 2019-11-25 14:52:19 +01:00
nemunaire 3e5b4ebad2 admin: add missing default settings 2019-07-12 19:22:05 +02:00
nemunaire 2b95995104 settings: add canJoinTeam parameter 2019-02-06 03:40:49 +01:00
nemunaire 4ee70a8781 settings: change param to enable/disable depends by the depth 2019-01-21 09:58:36 +01:00
nemunaire 8749a7c164 Make go vet -strictshadow mostly happy 2019-01-21 09:58:36 +01:00
nemunaire 7edd70c3c0 admin: apply settings to internal structures
This allows scores and rank to be properly generated in admin interface.
2019-01-21 03:08:05 +01:00
nemunaire 7970b552e9 dashboard: move public.json files into a dedicated directory 2019-01-21 03:08:05 +01:00
nemunaire af2fe21d73 admin: initialize directory structure and required files at launch 2018-12-08 03:23:08 +01:00
nemunaire 92ba880006 sync: save import_report into StaticDir 2018-12-08 03:23:07 +01:00
nemunaire c460bb7bf5 Handle graceful http shutdown 2018-05-11 05:27:51 +02:00
nemunaire 0ec90b14c6 Fixes thanks to go vet 2018-05-11 05:27:51 +02:00
nemunaire c118035c33 Introducing new PKI management 2018-05-11 05:27:50 +02:00
nemunaire 992221a6da Remove old PKI 2018-05-11 05:27:50 +02:00
nemunaire 8ed23ddc7a admin: localimporter can make symlink instead of copying whole files 2018-01-17 18:52:42 +01:00
nemunaire bfd7126e1e tmp 2018-01-17 18:52:40 +01:00
nemunaire 8f7de926d3 admin: Implement sychronization backends
We are now able, depending on configuration, to retrieve files from either WebDAV or local file system.
2018-01-17 18:52:39 +01:00
nemunaire 99975d9df4 admin: Take cloud URL, user and pass from environment 2018-01-17 18:52:39 +01:00
nemunaire cd5a9d06ea Define global default value at initialisation 2018-01-17 18:52:39 +01:00
nemunaire e6e6e6c206 Use BLAKE2b checksum instead of SHA-1 and SHA-512 2018-01-17 18:52:38 +01:00
nemunaire f17541e252 Move settings and started file into SETTINGS directory 2018-01-17 18:52:38 +01:00
nemunaire 76a4c09f37 admin: add comments 2018-01-17 18:52:37 +01:00
nemunaire 82ecd0d6dd admin: Fix redirections when using baseurl 2018-01-17 18:52:35 +01:00
nemunaire ce46313dd1 admin: make baseurl optional 2018-01-17 18:52:35 +01:00
nemunaire 410ab529ae admin: don't need submission directory anymore 2018-01-17 18:52:35 +01:00
nemunaire d0f588e47d Generate DNS from env 2018-01-17 18:52:34 +01:00
nemunaire 67f27d3d8b Force cd into PKI directory 2018-01-17 18:52:30 +01:00
nemunaire ef4a738672 admin: control settings 2018-01-17 18:52:29 +01:00
nemunaire 1bd403cd8c Handle file import digest 2018-01-17 18:51:53 +01:00
nemunaire 63931f73ba admin: new argument --rapidimport to speed up the import but don't ensure consistency 2018-01-17 18:51:53 +01:00
nemunaire 3b320469b5 Use github.com/julienschmidt/httprouter instead of gorilla 2018-01-17 18:51:52 +01:00
nemunaire 1054dd7086 admin/api: use gorilla/mux instead of Go router 2018-01-17 18:51:44 +01:00
nemunaire 9894a91948 admin: can give the static dir location 2017-11-25 15:01:01 +01:00
nemunaire 5fa19223a9 admin: can change the baseurl interface 2017-11-25 15:01:01 +01:00
nemunaire aa7afe1a6a by default, only listen on localhost 2017-11-25 15:01:00 +01:00
nemunaire c137969b6a Add a logger prefix 2017-04-05 01:51:20 +02:00
nemunaire bde582ad4b Don't use the default mux for handling requests 2016-10-13 19:56:31 +02:00
nemunaire fc0834ea4c log.Fatal already do Exit(1) 2016-10-13 19:56:31 +02:00