Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
infrastructure
Commits
ea838ec9
Commit
ea838ec9
authored
Oct 14, 2019
by
Jelle van der Waa
🚧
Browse files
fluxbb: updates/renames for fluxbb
parent
312161a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
roles/fluxbb/tasks/main.yml
View file @
ea838ec9
---
-
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=f
orum
state=present
mysql_db
:
name=f
luxbb
state=present
-
name
:
create mariadb user
mysql_user
:
>
user=f
orum
host=localhost password={{ mariadb_users.fluxbb }}
user=f
luxbb
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=0
644
file
:
path=/var/log/nginx/
{{ fluxbb_domain }} state=directory
owner=root group=root mode=0
755
-
name
:
configure nginx
template
:
>
...
...
@@ -37,7 +37,7 @@
-
name
:
create auth file
htpasswd
:
>
path=/etc/nginx/auth/f
orum
path=/etc/nginx/auth/f
luxx
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
roles/fluxbb/templates/config.php.j2
View file @
ea838ec9
...
...
@@ -4,8 +4,8 @@ $db_type = 'mysqli';
$db_host
=
'localhost'
;
$db_name
=
'fluxbb'
;
$db_username
=
'fluxbb'
;
$db_password
=
'{{ mariadb_users.f
orum
}}'
;
$db_prefix
=
''
;
$db_password
=
'{{ mariadb_users.f
luxbb
}}'
;
$db_prefix
=
'
fluxbb_
'
;
$p_connect
=
false
;
$cookie_name
=
'{{ fluxbb_cookie_name }}'
;
...
...
roles/fluxbb/templates/php-fpm.conf.j2
View file @
ea838ec9
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment