|
|
c143c4 |
include:
|
|
|
c143c4 |
- role.common.nginx
|
|
|
c143c4 |
{% if salt['grains.get']('include_secrets', True) %}
|
|
|
c143c4 |
- secrets.role.web_forum
|
|
|
c143c4 |
{% endif %}
|
|
|
c143c4 |
|
|
|
c143c4 |
{% set vhost = 'forums' %}
|
|
|
c143c4 |
nginx:
|
|
|
c143c4 |
ng:
|
|
|
c143c4 |
servers:
|
|
|
c143c4 |
managed:
|
|
|
c143c4 |
{{vhost}}.conf:
|
|
|
c143c4 |
config:
|
|
|
c143c4 |
- server:
|
|
|
c143c4 |
- listen: 80
|
|
|
c143c4 |
- server_name: forums.opensuse.org
|
|
|
c143c4 |
- root: /srv/www/vhosts/{{vhost}}/htdocs
|
|
|
c143c4 |
- index: index.php index.html
|
|
|
c143c4 |
- access_log: /var/log/nginx/{{vhost}}.access.log combined
|
|
|
c143c4 |
- error_log: /var/log/nginx/{{vhost}}.error.log
|
|
|
c143c4 |
- location = /50x.html:
|
|
|
c143c4 |
- root: /srv/www/htdocs
|
|
|
c143c4 |
- location = /css\.php:
|
|
|
c143c4 |
- rewrite: ^ /core/css.php break
|
|
|
c143c4 |
- location ^~ /install:
|
|
|
c143c4 |
- rewrite: ^/install/ /core/install/ break
|
|
|
c143c4 |
- location /:
|
|
|
c143c4 |
- if (!-f $request_filename):
|
|
|
c143c4 |
- rewrite: ^/(.*)$ /index.php?routestring=$1 last
|
|
|
c143c4 |
- location ^~ /admincp:
|
|
|
c143c4 |
- if (!-f $request_filename):
|
|
|
c143c4 |
- rewrite: ^/admincp/?(.*)$ /index.php?routestring=admincp/$1 last
|
|
|
c143c4 |
- location ~ \.php$:
|
|
|
c143c4 |
- if (!-f $request_filename):
|
|
|
c143c4 |
- rewrite: ^/(.*)$ /index.php?routestring=$1 break
|
|
|
c143c4 |
- fastcgi_split_path_info: ^(.+\.php)(.*)$
|
|
|
c143c4 |
- fastcgi_pass: phpfastcgi
|
|
|
c143c4 |
- fastcgi_index: index.php
|
|
|
c143c4 |
- fastcgi_param: SCRIPT_FILENAME $document_root$fastcgi_script_name
|
|
|
c143c4 |
- include: fastcgi_params
|
|
|
c143c4 |
- fastcgi_param: QUERY_STRING $query_string
|
|
|
c143c4 |
- fastcgi_param: REQUEST_METHOD $request_method
|
|
|
c143c4 |
- fastcgi_param: CONTENT_TYPE $content_type
|
|
|
c143c4 |
- fastcgi_param: CONTENT_LENGTH $content_length
|
|
|
c143c4 |
- fastcgi_intercept_errors: 'on'
|
|
|
c143c4 |
- fastcgi_ignore_client_abort: 'off'
|
|
|
c143c4 |
- fastcgi_connect_timeout: 60
|
|
|
c143c4 |
- fastcgi_send_timeout: 180
|
|
|
c143c4 |
- fastcgi_read_timeout: 180
|
|
|
c143c4 |
- fastcgi_buffers: 256 16k
|
|
|
c143c4 |
- fastcgi_buffer_size: 32k
|
|
|
c143c4 |
- fastcgi_temp_file_write_size: 256k
|
|
|
c143c4 |
- upstream phpfastcgi:
|
|
|
c143c4 |
- server: unix:/run/php-fpm/{{vhost}}.sock
|
|
|
c143c4 |
enabled: True
|
|
|
c143c4 |
|
|
|
c143c4 |
# configure host-specific parameters for vbulletin in pillar/id/*.sls
|
|
|
c143c4 |
vbulletin:
|
|
|
c143c4 |
config:
|
|
|
c143c4 |
Database:
|
|
|
0325f0 |
dbname: webforums2
|
|
|
c143c4 |
technicalemail: admin-auto@opensuse.org
|
|
|
c143c4 |
tableprefix: vb_
|
|
|
c143c4 |
MasterServer:
|
|
|
c143c4 |
servername: 192.168.47.4
|
|
|
c143c4 |
port: 3307
|
|
|
c143c4 |
username: vbulletin
|
|
|
c143c4 |
# password provided as a secret
|
|
|
c143c4 |
Mysqli:
|
|
|
c143c4 |
charset: Latin1
|
|
|
c143c4 |
SpecialUsers:
|
|
|
c143c4 |
canviewadminlog: '1,5'
|
|
|
c143c4 |
canpruneadminlog: '1,5'
|
|
|
c143c4 |
canrunqueries: '1,5'
|
|
|
c143c4 |
undeletableusers: '1'
|
|
|
c143c4 |
superadmins: '1,431,740,783,5442,105475'
|
|
|
c143c4 |
Misc:
|
|
|
c143c4 |
maxwidth: 2592
|
|
|
c143c4 |
maxheight: 1944
|
|
|
c143c4 |
|
|
|
c143c4 |
zypper:
|
|
|
c143c4 |
packages:
|
|
|
c143c4 |
php7-fpm: {}
|
|
|
c143c4 |
php7-mysql: {}
|
|
|
c143c4 |
php7-gd: {}
|
|
|
c143c4 |
php7-json: {}
|
|
|
c143c4 |
php7-xmlreader: {}
|
|
|
c143c4 |
php7-xmlwriter: {}
|
|
|
c143c4 |
php7-mbstring: {}
|
|
|
c143c4 |
php7-iconv: {}
|
|
|
c143c4 |
php7-imagick: {}
|
|
|
c143c4 |
php7-curl: {}
|
|
|
c143c4 |
php7-ctype: {}
|
|
|
c143c4 |
php7-phar: {}
|
|
|
c143c4 |
php7-opcache: {}
|
|
|
c143c4 |
php7-tokenizer: {}
|
|
|
c143c4 |
php7-zlib: {}
|
|
|
c143c4 |
|