doc:formations:hebergement:service_non_publie:kanboard
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | |||
doc:formations:hebergement:service_non_publie:kanboard [2025/03/10 14:11] – jeremie | doc:formations:hebergement:service_non_publie:kanboard [2025/03/10 14:14] (Version actuelle) – jeremie | ||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
<code bash> | <code bash> | ||
apt install kanboard php-pgsql | apt install kanboard php-pgsql | ||
- | mkdir | ||
mkdir -p / | mkdir -p / | ||
chown -R www-data: | chown -R www-data: | ||
Ligne 19: | Ligne 18: | ||
psql -c "GRANT ALL PRIVILEGES ON DATABASE kanboard TO kanboard;" | psql -c "GRANT ALL PRIVILEGES ON DATABASE kanboard TO kanboard;" | ||
psql -U kanboard -d kanboard -a -f / | psql -U kanboard -d kanboard -a -f / | ||
+ | |||
+ | vi / | ||
+ | |||
</ | </ | ||
Ligne 24: | Ligne 26: | ||
Attention, le plugin " | Attention, le plugin " | ||
+ | |||
+ | Config nginx locale: | ||
+ | < | ||
+ | server { | ||
+ | listen | ||
+ | server_name | ||
+ | index | ||
+ | root / | ||
+ | client_max_body_size 512M; | ||
+ | |||
+ | access_log / | ||
+ | error_log / | ||
+ | |||
+ | location / { | ||
+ | try_files $uri $uri/ / | ||
+ | } | ||
+ | |||
+ | location ~ \.php$ { | ||
+ | try_files $uri =404; | ||
+ | fastcgi_split_path_info ^(.+\.php)(/ | ||
+ | fastcgi_pass unix:/ | ||
+ | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
+ | fastcgi_index index.php; | ||
+ | include fastcgi_params; | ||
+ | } | ||
+ | |||
+ | location ~* ^.+\.(log|sqlite)$ { | ||
+ | return 404; | ||
+ | } | ||
+ | |||
+ | location ~ /\.ht { | ||
+ | return 404; | ||
+ | } | ||
+ | |||
+ | location ~* ^.+\.(ico|jpg|gif|png|css|js|svg|eot|ttf|woff|woff2|otf)$ { | ||
+ | log_not_found off; | ||
+ | expires 7d; | ||
+ | etag on; | ||
+ | } | ||
+ | |||
+ | gzip on; | ||
+ | gzip_comp_level 3; | ||
+ | gzip_disable " | ||
+ | gzip_vary on; | ||
+ | gzip_types | ||
+ | text/ | ||
+ | application/ | ||
+ | application/ | ||
+ | text/xml | ||
+ | application/ | ||
+ | application/ | ||
+ | text/css | ||
+ | text/ | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Proxy nginx pour renvoyer vers un kanboard local: | ||
+ | < | ||
+ | server { | ||
+ | server_name kan.valorhiz-webservices.com; | ||
+ | client_max_body_size 512M; | ||
+ | listen 80; | ||
+ | |||
+ | root / | ||
+ | error_log / | ||
+ | access_log /dev/null; | ||
+ | |||
+ | index index.php index.html index.htm index.nginx-debian.html; | ||
+ | |||
+ | location / | ||
+ | alias / | ||
+ | } | ||
+ | |||
+ | #rewrite ^/$ /kanboard/; | ||
+ | |||
+ | location / { | ||
+ | proxy_pass http:// | ||
+ | proxy_set_header Host $host; | ||
+ | proxy_set_header X-Real-IP $remote_addr; | ||
+ | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
+ | proxy_set_header X-Forwarded-Proto https; | ||
+ | proxy_redirect off; | ||
+ | } | ||
+ | } | ||
+ | </ |
doc/formations/hebergement/service_non_publie/kanboard.txt · Dernière modification : 2025/03/10 14:14 de jeremie