Customize folder setup

This commit is contained in:
Paul Nicoué 2022-07-08 17:11:28 +02:00
parent 445db7d1bf
commit 302c150790
29 changed files with 49 additions and 15 deletions

20
.gitignore vendored
View file

@ -22,28 +22,28 @@ Icon
.DS_Store .DS_Store
# Temporary files # Temporary files
/media/* /public/media/*
!/media/index.html !/public/media/index.html
# -------------------------------------------------- # --------------------------------------------------
# SECURITY # SECURITY
# -------------------------------------------------- # --------------------------------------------------
# Accounts # Accounts
/site/accounts/* /storage/accounts/*
!/site/accounts/index.html !/storage/accounts/index.html
# Cache Files # Cache Files
/site/cache/* /storage/cache/*
!/site/cache/index.html !/storage/cache/index.html
# Configuration files # Configuration files
/site/config/config.julienmonnerie.com.php /site/config/config.xiaowang.fr.php
/site/config/config.julienmonnerie.test.php /site/config/config.xiaowang.test.php
# License # License
/site/config/.license /site/config/.license
# Sessions # Sessions
/site/sessions/* /storage/sessions/*
!/site/sessions/index.html !/storage/sessions/index.html

1
htdocs Symbolic link
View file

@ -0,0 +1 @@
public

View file

@ -1,5 +0,0 @@
<?php
require 'kirby/bootstrap.php';
echo (new Kirby)->render();

18
public/index.php Normal file
View file

@ -0,0 +1,18 @@
<?php
include __DIR__ . '/../vendor/autoload.php';
$kirby = new Kirby([
'roots' => [
'index' => __DIR__,
'base' => $base = dirname(__DIR__),
'content' => $base . '/content',
'site' => $base . '/site',
'storage' => $storage = $base . '/storage',
'accounts' => $storage . '/accounts',
'cache' => $storage . '/cache',
'sessions' => $storage . '/sessions',
]
]);
echo $kirby->render();

View file

@ -0,0 +1,10 @@
<?php
return [
// Kirby configuration settings (production environment)
'debug' => false,
// Matomo plugin options (critical keys)
'sylvainjule.matomo' => [
// 'token' => 'a3d53082e369334813c0ed93d5a80db6'
]
];

View file

@ -0,0 +1,10 @@
<?php
return [
// Kirby configuration settings (development environment)
'debug' => true,
// Matomo plugin options (critical keys)
'sylvainjule.matomo' => [
// 'token' => 'a3d53082e369334813c0ed93d5a80db6'
]
];