Différences
Ci-dessous, les différences entre deux révisions de la page.
| pratique:informatique:grocy [27/08/2023 08:37] – créée Zatalyz | pratique:informatique:grocy [27/08/2023 09:09] (Version actuelle) – Zatalyz | ||
|---|---|---|---|
| Ligne 3: | Ligne 3: | ||
| < | < | ||
| - | mkdir grocy | + | mkdir /var/www/grocy |
| - | cd grocy | + | cd /var/www/grocy |
| wget (lien de la dernière version) | wget (lien de la dernière version) | ||
| unzip grocy* | unzip grocy* | ||
| + | cp config-dist.php / | ||
| + | </ | ||
| + | Modifier ces valeurs : | ||
| + | < | ||
| + | Setting(' | ||
| + | Setting(' | ||
| + | Setting(' | ||
| + | </ | ||
| + | Et ouais on laisse par défaut les " | ||
| + | |||
| + | Ensuite Apache (ou ce que vous voulez) : | ||
| + | |||
| + | < | ||
| sudo apt install apache2 php php-gd php-json php-intl php-mbstring php-sqlite3 | sudo apt install apache2 php php-gd php-json php-intl php-mbstring php-sqlite3 | ||
| + | sudo nano / | ||
| + | sudo a2enmod rewrite | ||
| + | sudo service apache2 restart | ||
| + | </ | ||
| + | |||
| + | Si ce n'est pas '' | ||
| + | |||
| + | Contenu du vhost (derrière un proxy donc uniquement en 80) : | ||
| + | < | ||
| + | < | ||
| + | ServerName grocy.mondomaine.org | ||
| + | |||
| + | ServerAdmin webmaster@localhost | ||
| + | DocumentRoot / | ||
| + | |||
| + | RewriteEngine On | ||
| + | |||
| + | < | ||
| + | Options Indexes FollowSymLinks MultiViews | ||
| + | AllowOverride All | ||
| + | Order allow,deny | ||
| + | allow from all | ||
| + | </ | ||
| + | |||
| + | ErrorLog ${APACHE_LOG_DIR}/ | ||
| + | CustomLog ${APACHE_LOG_DIR}/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | Contenu sur le proxy, avec nginx cette fois. '' | ||
| + | |||
| + | < | ||
| + | server { | ||
| + | listen | ||
| + | server_name " | ||
| + | |||
| + | include | ||
| + | include | ||
| + | include | ||
| + | |||
| + | return | ||
| + | |||
| + | server { | ||
| + | listen | ||
| + | server_name " | ||
| + | |||
| + | include | ||
| + | include | ||
| + | include | ||
| + | |||
| + | ssl_certificate / | ||
| + | ssl_certificate_key / | ||
| + | |||
| + | client_max_body_size | ||
| + | |||
| + | location / { | ||
| + | proxy_set_header | ||
| + | |||
| + | proxy_set_header | ||
| + | proxy_set_header | ||
| + | proxy_set_header | ||
| + | proxy_buffering | ||
| + | proxy_request_buffering off; | ||
| + | proxy_pass | ||
| + | } | ||
| + | |||
| + | |||
| </ | </ | ||
| - | Ensuite paramétrage d' | ||
| {{tag> | {{tag> | ||