Serveur d'annonces de préparation de ĞMarchés
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Pascal Engélibert 427110836e
Fix new ad
1 year ago
src Fix new ad 1 year ago
static Multiple backgrounds 1 year ago
templates Fix new ad 1 year ago
.gitignore Initial commit 3 years ago
Cargo.lock Edit group 1 year ago
Cargo.toml Groups 1 year ago
LICENSE Initial commit 3 years ago
README.md root_url 2 years ago
rustfmt.toml Multiple backgrounds 1 year ago

README.md

ĞMarché

Implémentation en Rust du site des ĞMarchés.

Configuration

Aucun autre logiciel n'est requis. Un webserver (e.g. Apache, Nginx) ou autre (e.g. stunnel, ssl-proxy) peut être utilisé en reverse-proxy, par exemple pour utiliser HTTPS.

Initialisez la configuration :

gmarche init

Modifiez la configuration dans ~/.config/gmarche/config.json. Vous pouvez aussi modifier les templates HTML et les fichiers statiques dans ce dossier.

Lancez le serveur :

gmarche start

L'option -d <dir> permet de changer le dossier de données/config (par exemple pour lancer plusieurs instances) :

gmarche -d mon/autre/dossier/ start|init

Pour lancer l'instance dans un sous-dossier de l'URL (i.e. http://example.tld/gmarche), changez root_url dans la config. La valeur doit toujours commencer et terminer par un /.