nginx_vhosts: - listen: "80 default" server_name: "_" root: "/var/www/mtinfo3000/mti/webroot/" access_log: "/var/log/nginx/access-di-mti.log" error_log: "/var/log/nginx/error-di-mti.log" filename: "mtinfo.conf" index: "index.php" template: "{{ inventory_dir }}/files/dtap/mtinfo_nginx.conf.j2" - listen: "80" server_name: "~...\\-?api\\.mtinfo3000\\.com" access_log: "/var/log/nginx/access-di-mti-api.log" error_log: "/var/log/nginx/error-di-mti-api.log" filename: "mtinfo-api.conf" template: "{{ inventory_dir }}/files/dtap/mtinfo_api_nginx.conf.j2" - listen: "80" server_name: "~...\\-ts\\.mtinfo3000\\.com" access_log: "/var/log/nginx/access-di-timesheet.log" error_log: "/var/log/nginx/error-di-timesheet.log" filename: "timesheet.conf" template: "{{ nginx_vhost_template }}" extra_parameters: | location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect off; include proxy_params; proxy_pass http://dev05:20182; proxy_http_version 1.1; proxy_read_timeout 86400; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } - listen: "80" server_name: "~...\\-railinsight\\.mtinfo3000\\.com" access_log: "/var/log/nginx/access-di-railinsightbe.log" error_log: "/var/log/nginx/error-di-railinsightbe.log" filename: "railinsightbe.conf" template: "{{ nginx_vhost_template }}" extra_parameters: | location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect off; include proxy_params; proxy_pass http://{{ backend_host }}:8084; proxy_http_version 1.1; proxy_read_timeout 86400; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } nginx_remove_default_vhost: true nodejs_version: "8.x" npm_config_prefix: "/usr" php_enable_webserver: false php_enable_php_fpm: true php_packages_state: latest php_fpm_listen: /run/php/php7.1-fpm.sock php_fpm_listen_allowed_clients: "" php_fpm_pool_user: "mtinfo3000" php_packages_extra: - php7.1-gd - php7.1-json - php7.1-mysql - php-imagick - php7.1-curl - php7.1-zip - php7.1-memcached - php7.1-intl php_opcache_conf_filename: 10-opcache.ini php_date_timezone: Europe/Amsterdam php_post_max_size: 10M php_upload_max_filesize: 8M php_max_input_vars: 5000 php_fpm_extra_entries: - php_value[session.save_path] = "127.0.0.1:11211" - php_value[session.save_handler] = memcached - php_value[session.lazy_write] = 0 memcached_max_item_size: 10m memcached_memory_limit: 128 logrotate_services: - name: "di-frontend" user: "mtinfo3000" group: "mtinfo3000" keep_files: 93 keep_days: 93 file: "/var/log/di-web/*.log" copytruncate: true