grav/defaults/main.yml
2023-08-03 11:37:45 +02:00

113 lines
No EOL
3.1 KiB
YAML

---
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'
grav_version: '1.7.41.1'
grav_download_url: 'https://github.com/getgrav/grav/releases/download/{{ grav_version }}/grav-v{{ grav_version }}.zip'
# Repos
## site_hostname: the main name of your website root, where you'll download pages, theme, etc.
## folder_name: whatever you want as a name for your repo/folder
## type: can be pages or theme. "pages" means that this repo will the main website, not a sub folder like theme
## 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
grav_modules_already_installed: 'false' # set to true after 1st installation
# If you have a git repo with your pages you can set it with the following:
grav_website_repo:
- site_hostname: mywebsite.lan
#repo:
modules:
- name: themer
- name: language-selector
config: 'true'
site_name: "My Website"
theme_name: quark # the default is quark
# If you have a repo with a theme you can set it with the following:
grav_website_theme:
# - site_hostname:
# folder_name:
# theme_name:
# repo:
# If you have other repos, for exemple specific pages, you can set those with the following:
grav_website_specific_pages:
# - site_hostname:
# folder_name:
# 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
php_version: '8.0'
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'
selfsigned: 'true'