--- grav_modules_already_installed: 'false' # set to true after 1st installation so that it doesn't install plugins again grav_extra_files_path: '../files' 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.46' 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: - 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 - name: themer - name: language-selector config: 'true' site_name: "My Website" pages_folder: "pages" # keep that empty if your repo files are in the `pages` folder. Otherwise, set it to `pages`. # 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. # If you have a repo with a theme you can set it with the following: grav_website_theme: # - site_hostname: # the name of your website's hostname # folder_name: # the name you want to give to the git cloned folder # 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. # theme_name: # the name you want to give to the theme # repo: # the website 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.2' 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'