2023-05-19 22:18:34 +02:00
---
2023-08-13 18:45:29 +02:00
grav_modules_already_installed : 'false' # set to true after 1st installation so that it doesn't install plugins again
2024-02-06 21:24:54 +01:00
grav_extra_files_path : '../files'
2023-05-19 22:18:34 +02:00
grav_pkg :
- dialog
- ca-certificates
- apt-transport-https
- composer
grav_tmp_dir : '/tmp/vagrant'
grav_path : '/var/www'
grav_user : 'www-data'
grav_group : 'www-data'
2024-05-16 18:29:28 +02:00
grav_version : '1.7.46'
2023-05-19 22:18:34 +02:00
grav_download_url : 'https://github.com/getgrav/grav/releases/download/{{ grav_version }}/grav-v{{ grav_version }}.zip'
# Repos
# If you have a git repo with your pages you can set it with the following:
grav_website_repo :
2023-08-13 18:45:29 +02:00
- site_hostname : mywebsite.lan # the main name of your website root, where you'll download pages, theme, etc.
#repo: "" # the url of your git repo.
modules : # list of modules you want to install with gpm. If no modules is to be set, add [], otherwise it throws an error
2023-05-19 22:18:34 +02:00
- name : themer
- name : language-selector
config : 'true'
site_name : "My Website"
2023-08-13 09:17:30 +02:00
pages_folder : "pages" # keep that empty if your repo files are in the `pages` folder. Otherwise, set it to `pages`.
2023-08-13 18:45:29 +02:00
# system_file: "mysite.system.yaml" # uncomment this if you want to deploy your own config file. Your yaml file has to be added in `files` folder.
# site_file: "mysite.site.yaml" # uncomment this if you want to deploy your own config file. Your yaml file has to be added in `files` folder.
2023-05-19 22:18:34 +02:00
# If you have a repo with a theme you can set it with the following:
grav_website_theme :
2023-08-13 09:17:30 +02:00
# - site_hostname: # the name of your website's hostname
# folder_name: # the name you want to give to the git cloned folder
2023-08-13 22:38:40 +02:00
# subfolder_path: "/" # path to the folder that holds the files on your repo, if there aren't in your repo's root. Set it as "/" if your files are in root.
2023-08-13 09:17:30 +02:00
# theme_name: # the name you want to give to the theme
# repo: # the website repo
2023-05-19 22:18:34 +02:00
# If you have other repos, for exemple specific pages, you can set those with the following:
grav_website_specific_pages :
# - site_hostname:
2023-08-13 09:17:30 +02:00
# folder_name:
2023-05-19 22:18:34 +02:00
# repo:
# symlink_from_path:
# symlink_to_path:
# Modules vars
## language-selector vars
grav_language_selector_enabled : 'true'
grav_language_selector_button : 'name'
grav_language_selector_select : 'name'
# PHP Vars
2024-05-16 18:24:50 +02:00
php_version : '8.2'
2023-05-19 22:18:34 +02:00
php_etc_path : '/etc/php'
install_php : 'true'
pool_listen : '/var/run/php/php{{ php_version }}-fpm.sock'
php_pkgs :
- php{{ php_version }}-cli
- php{{ php_version }}-curl
- php{{ php_version }}-curl
- php{{ php_version }}-dom
- php{{ php_version }}-gd
- php{{ php_version }}-mbstring
- php{{ php_version }}-simplexml
- php{{ php_version }}-xml
- php{{ php_version }}-zip
- php{{ php_version }}-fpm
- php{{ php_version }}-apcu
- php{{ php_version }}-opcache
- php{{ php_version }}-yaml
#NGINX SETUP
## Needed for self signed
ssl_src_path : '/etc/letsencrypt/live'
nginx_gen_dh : 'true'
nginx_dh_length : 2048
nginx_default_vhost_ssl : 'mywebsite.lan'
nginx_default_vhost : 'mywebsite.lan'
nginx_HSTS_policy : 'true'
nginx_vhosts :
- name : 'mywebsite.lan'
template : 'grav'
proto : 'https'
listen : '443'
root : 'mywebsite.lan/site'
index : 'index.php'
ssl_name : 'mywebsite.lan'
use_access_log : 'false'
use_error_log : 'true'
nginx_error_log_level : 'warn'
header_robot : 'none'
nginx_HSTS_policy : 'none'
header_xframe : 'none'
header_referrer : 'none'
secure_site : 'none'
upstream_params :
- 'fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;'
- 'fastcgi_index index.php;'
- 'include /etc/nginx/fastcgi_params;'
- 'fastcgi_pass unix:{{ pool_listen }};'
state : 'enable'
letsencrypt : 'false'
2024-05-16 18:24:50 +02:00
selfsigned : 'true'