Commit ea838ec9 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

fluxbb: updates/renames for fluxbb

parent 312161a0
---
- name: create user
user: >
name=php-fluxbb home="{{ fluxbb_dir }}"
name=fluxbb home="{{ fluxbb_dir }}"
shell=/bin/false system=yes createhome=no
- name: clone fluxbb
git:
repo: https://git.archlinux.org/vhosts/bbs.archlinux.org.git/
dest: {{ fluxbb_dir }}
dest: "{{ fluxbb_dir }}"
- name: fix home permissions
file: >
state=directory owner=php-fluxbb group=php-fluxbb recurse=yes
state=directory owner=fluxbb group=fluxbb recurse=yes
path="{{ fluxbb_dir }}"
changed_when: False
- name: create mariadb database
mysql_db: name=forum state=present
mysql_db: name=fluxbb state=present
- name: create mariadb user
mysql_user: >
user=forum host=localhost password={{ mariadb_users.fluxbb }}
user=fluxbb host=localhost password={{ mariadb_users.fluxbb }}
priv='fluxbb.*:ALL'
- name: create nginx log directory
file: path=/var/log/nginx/forum owner=root group=root mode=0644
file: path=/var/log/nginx/{{ fluxbb_domain }} state=directory owner=root group=root mode=0755
- name: configure nginx
template: >
......@@ -37,7 +37,7 @@
- name: create auth file
htpasswd: >
path=/etc/nginx/auth/forum
path=/etc/nginx/auth/fluxx
name={{ fluxbb_htpasswd.username }}
password={{ fluxbb_htpasswd.password }}
owner=root group=http mode=0640
......@@ -45,7 +45,7 @@
- name: install forum config
template: >
src=config.php.j2 dest={{ fluxbb_dir }}/config.php
owner=php-fluxbb group=php-fluxbb mode=400
owner=fluxbb group=fluxbb mode=400
- name: configure php-fpm
template: >
......@@ -54,4 +54,4 @@
notify: restart php-fpm@fluxbb
- name: start and enable systemd socket
service: name=php-fpm@fluxbb.socket state=running enabled=true
service: name=php-fpm@fluxbb.socket state=started enabled=true
......@@ -4,8 +4,8 @@ $db_type = 'mysqli';
$db_host = 'localhost';
$db_name = 'fluxbb';
$db_username = 'fluxbb';
$db_password = '{{ mariadb_users.forum }}';
$db_prefix = '';
$db_password = '{{ mariadb_users.fluxbb }}';
$db_prefix = 'fluxbb_';
$p_connect = false;
$cookie_name = '{{ fluxbb_cookie_name }}';
......
......@@ -4,7 +4,7 @@ daemonize = no
[fluxbb]
listen = /run/php-fpm/fluxbb.socket
listen.owner = php-fluxbb
listen.owner = fluxbb
listen.group = http
listen.mode = 0660
......@@ -25,3 +25,4 @@ php_admin_value[opcache.interned_strings_buffer] = 8
php_admin_value[opcache.max_accelerated_files] = 200
php_admin_value[opcache.revalidate_freq] = 60
php_admin_value[opcache.fast_shutdown] = 1
php_admin_value[disable_functions] = passthru, exec, proc_open, shell_exec, system, popen
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment