No Competition SelectedNetwork Access Policies: Off
Superuser () R/W
Credits
Server configuration (config.local.json)
Settings specific to this server. Passwords are never shown, and the commands, file paths and server addresses can only be changed from the command line: a stolen administrator session must not be able to run commands on the server nor divert the organisers' credentials. Each save keeps the previous version (config.local.json.bak) and is logged.
Server state
Read-only checks, drawn from real incidents on an ianseo server in production (details: Modules/Custom/AUTH/SERVEUR.md). Nothing is changed here: the fixes suggested are made from the command line on the server.
✔ MariaDB 10.11.14Engine not affected by the MySQL 8 trap on big sessions.
⚠ Database connectionsmax_connections = 151, peak since the database started: 4. ianseo opens two connections per page (reading and writing): 150 PHP processes at most (MaxRequestWorkers, /etc/apache2/mods-enabled/mpm_prefork.conf) would ask for 300 at the peak of the load, beyond the limit.max_connections = 320 (file /etc/mysql/…/99-ianseo.cnf, template serveur/mysql/ianseo.cnf, then restart the database)
✔ Database memoryinnodb_buffer_pool_size = 128 MB for a database of 33 MB.
ℹ Slow query log offIt is what names the query at fault when the server slows down. Advised threshold: 2 s.sudo mysql -e "SET GLOBAL slow_query_log = 1; SET GLOBAL long_query_time = 2;" (and in the .cnf to keep it at restart — template serveur/mysql/ianseo.cnf)
⚠ Short PHP sessionsAn idle session is erased after 24 min: the user is signed out and loses the open competition.session.gc_maxlifetime = 43200 (in /etc/php/8.3/apache2/php.ini, then restart Apache)
⚠ Import sizePHP refuses uploads bigger than 8 MB: importing a big competition will fail.upload_max_filesize = 64M post_max_size = 64M (in /etc/php/8.3/apache2/php.ini, then restart Apache)
✔ OPcacheOn.
✔ Size of the sessionsNo session of more than 5000 places in the competitions under way or to come.
⚠ System updatesDefault time: around 6 am, with a random delay of one hour. They restart the database and Apache — on another ianseo server, three times in the middle of a competition in one semester.Templates serveur/apt (installation at 04:30, after the maintenance of 03:15) — SERVEUR.md § 4.1
ℹ Restart after updatesneedrestart is installed without the module's setting: depending on its configuration, it restarts the services as soon as an update is installed (in the daytime too, for an update caught up after the server was switched on) or only lists them.Templates serveur/needrestart/ianseo.conf, serveur/bin/ianseo-restart-services and serveur/cron/ianseo-restart — SERVEUR.md § 4.1
⚠ Server templatesSystem files the server cannot do without are missing. Commands below, to run on the server (each file in detail: serveur/README.md).
  • /usr/local/bin/ianseo-lock — missing
  • /usr/local/bin/ianseo-unlock — missing
  • /usr/local/bin/ianseo-maintenance-on — missing
  • /usr/local/bin/ianseo-maintenance-off — missing
  • /usr/local/bin/ianseo-restart-services — missing
  • /usr/local/bin/ianseo-restore — missing (recommended)
  • /var/www/maintenance/index.html — missing
  • /etc/cron.d/ianseo-nightly — missing
  • /etc/cron.d/ianseo-restart — missing
  • /etc/cron.d/ianseo-backup-live — missing (recommended)
  • /etc/cron.d/ianseo-licences — missing (recommended)
  • /etc/cron.d/ianseo-waitlist — missing (recommended)
  • /etc/cron.d/ianseo-trust — missing (recommended)
  • /etc/logrotate.d/ianseo — missing
  • /etc/systemd/system/apt-daily.timer.d/ianseo.conf — missing
  • /etc/systemd/system/apt-daily-upgrade.timer.d/ianseo.conf — missing
  • /etc/apt/apt.conf.d/51ianseo-auto-reboot — missing (recommended)
  • /etc/needrestart/conf.d/ianseo.conf — missing
  • /etc/fail2ban/filter.d/ianseo-auth.conf — missing (recommended)
  • /etc/fail2ban/jail.d/ianseo.conf — missing (recommended)
  • /etc/mysql/mariadb.conf.d/99-ianseo.cnf — missing (recommended)
sudo install -m 0750 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/bin/ianseo-lock /usr/local/bin/ sudo install -m 0750 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/bin/ianseo-unlock /usr/local/bin/ sudo install -m 0750 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/bin/ianseo-maintenance-on /usr/local/bin/ sudo install -m 0750 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/bin/ianseo-maintenance-off /usr/local/bin/ sudo install -m 0750 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/bin/ianseo-restart-services /usr/local/bin/ sudo install -m 0750 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/bin/ianseo-restore /usr/local/bin/ sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/apache/maintenance.html /var/www/maintenance/index.html sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/cron/ianseo-nightly /etc/cron.d/ianseo-nightly sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/cron/ianseo-restart /etc/cron.d/ianseo-restart sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/cron/ianseo-backup-live /etc/cron.d/ianseo-backup-live sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/cron/ianseo-licences /etc/cron.d/ianseo-licences sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/cron/ianseo-waitlist /etc/cron.d/ianseo-waitlist sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/cron/ianseo-trust /etc/cron.d/ianseo-trust sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/logrotate/ianseo /etc/logrotate.d/ianseo sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/apt/apt-daily.timer.conf /etc/systemd/system/apt-daily.timer.d/ianseo.conf sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/apt/apt-daily-upgrade.timer.conf /etc/systemd/system/apt-daily-upgrade.timer.d/ianseo.conf sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/apt/51ianseo-auto-reboot /etc/apt/apt.conf.d/51ianseo-auto-reboot sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/needrestart/ianseo.conf /etc/needrestart/conf.d/ianseo.conf sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/fail2ban/filter-ianseo-auth.conf /etc/fail2ban/filter.d/ianseo-auth.conf sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/fail2ban/jail-ianseo.conf /etc/fail2ban/jail.d/ianseo.conf sudo install -D -m 0644 -o root -g root /opt/ianseohdf/Modules/Custom/AUTH/serveur/mysql/ianseo.cnf /etc/mysql/mariadb.conf.d/99-ianseo.cnf sudo systemctl daemon-reload sudo systemctl reload fail2ban
⚠ BackupsNo nightly backup in /var/backups/ianseo; no live copy (template serveur/cron/ianseo-backup-live).
Licensee files of foreign federations
Files published by some federations (addresses kept by the ianseo team), downloaded each night: the archers of these countries create their account with their licence. A file holding fewer than 90 % of the licences of the day before is refused (cut short?); if the federation cleaned it on purpose, force it here, otherwise it stays blocked.
CAN
Canada
ℹ Never loaded: the archers of this country go through the manual entry.
BALT
Estonia, Latvia, Lithuania
ℹ Never loaded: the archers of this country go through the manual entry.
ITA
Italy
ℹ Never loaded: the archers of this country go through the manual entry.
SLO
Slovenia
ℹ Never loaded: the archers of this country go through the manual entry.
As each night: about a minute (several megabytes to download).
Jobs journal
Outcome of the scheduled jobs of the last 14 days (nightly maintenance, licences, foreign files…), newest first, with the detail of each error: the state of the server is followed from here, without a command line.
No job recorded in the last 14 days.
Backups (night + live copies)
The nightly backup is taken every night: site closed, just before the update, on a night when the ianseo core or a module is to be updated — it is what allows going back if a migration goes wrong — and site open the other nights, as a consistent snapshot that blocks nothing. The live copies (database only, site open, a few seconds without blocking anything) limit the loss to a few hours of data entry in case of disaster; they run when the task /etc/cron.d/ianseo-backup-live is installed (template serveur/cron/ianseo-backup-live).
State✘ The folder does not exist and the web server cannot create it.
To run once on the server:sudo install -d -o www-data -g www-data -m 0700 '/var/backups/ianseo'
✔ mysqldump available
– rclone not installed (online copy not possible)
Backup on
Backup folder
Absolute path, outside the web site (refused otherwise: the files could be downloaded there).
Keep (days)
The oldest ones are deleted; the latest backup is always kept.
Include the files
To go back after an update, both the database AND the code that goes with it are needed.
Include the club logos
Unticked (advised): a copy up to 14 times lighter and faster. A restore leaves the logos in place; on a new server, the logo sync puts them back for the competitions not over yet (cron/sync-logos.php --full).
Live copies, kept hours
Unticking suspends the live copies without touching the server. They are also sent online when an online copy is configured, with the same retention.
Core update
Online copy (rclone)
Empty = local backup only. Format: name:folder, where name is a destination declared in rclone (see below).
Keep online (days)
Set up a copy on Google Drive, Dropbox, OneDrive, a NAS…

The online copy goes through rclone, a free tool that can write to more than 70 services. The Google or Dropbox authorisation is done once, in rclone: ianseo stores no access token.

⚠️ The database holds the personal data of the licensees. Do not send it in clear to a host: declare an encrypted destination (rclone's crypt type) on top of your Drive — the files are unreadable there without the passphrase, which stays on the server. Keep this phrase elsewhere too: without it, the online backups cannot be recovered.

Once, from the command line on the server:

sudo apt install rclone sudo install -d -o www-data -g www-data -m 0700 /var/www/.config sudo -u www-data rclone config

In rclone config: first create the destination of the service (e.g. gdrive, type drive; the server having no browser, rclone gives a command rclone authorize "drive" to run on a PC where rclone is installed, then to paste back). Then create a destination gdrive-encrypted of type crypt pointing to gdrive:ianseo. Finally type gdrive-encrypted: above and test.

Maintenance night
Steps



The backup is set in the previous section.
Notice shown to the usersat , minutes before
Must match the time of the server's scheduled task (/etc/cron.d/ianseo-nightly). Empty = no notice.
Log retention (days)
Usage statistics
System commandson : none
off : none
unlock : none
lock : none
Can only be changed from the command line.
Sign of life (monitoring)none
Address called at the end of each night, and when a copy fails (…/fail) — for instance a healthchecks.io check, which also warns when nothing arrives (task stopped, server off). Key maintenance.ping_url, can only be changed from the command line.
Advanced editing (whole file)
Show the JSON

Passwords appear as ••••••••: leave them as they are to keep them, or replace them with the new value.