Skip to content

Commit

Permalink
Add resource workers and PHP profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mreid-tt committed Sep 24, 2024
1 parent 97f1602 commit d54ae62
Show file tree
Hide file tree
Showing 7 changed files with 139 additions and 2 deletions.
2 changes: 0 additions & 2 deletions spk/mantisbt/src/conf/PKG_DEPS

This file was deleted.

66 changes: 66 additions & 0 deletions spk/mantisbt/src/conf/resource
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"mariadb10-db": {
"admin-account-m10": "root",
"admin-pw-m10": "{{wizard_mysql_password_root}}",
"create-db": {
"db-collision": "skip",
"db-name": "mantisbt",
"flag": "{{wizard_create_db}}"
},
"drop-db-uninst": true,
"drop-user-uninst": true,
"grant-user": {
"db-name": "mantisbt",
"flag": "{{mysql_grant_user}}",
"host": "localhost",
"user-name": "mantisbt",
"user-pw": "{{wizard_mysql_password_mantisbt}}"
}
},
"webservice": {
"pkg_dir_prepare": [
{
"group": "http",
"mode": "0755",
"source": "/var/packages/mantisbt/target/share/mantisbt",
"target": "mantisbt",
"user": "sc-mantisbt"
}
],
"portals": [
{
"alias": "mantisbt",
"app": "com.synocommunity.packages.mantisbt",
"name": "Feng Office",
"service": "mantisbt",
"type": "alias"
}
],
"services": [
{
"backend": 2,
"display_name": "Feng Office",
"icon": "app/images/mantisbt-{0}.png",
"php": {
"backend": 8,
"extensions": [
"curl",
"gd",
"ldap",
"mysqli",
"pdo_mysql",
"soap",
"zlib"
],
"group": "http",
"profile_desc": "PHP Profile for mantisbt",
"profile_name": "mantisbt Profile",
"user": "sc-mantisbt"
},
"root": "mantisbt",
"service": "mantisbt",
"type": "apache_php"
}
]
}
}
7 changes: 7 additions & 0 deletions spk/mantisbt/src/conf_6/privilege
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"defaults": {
"run-as": "root"
},
"username": "sc-mantisbt",
"join-groupname": "http"
}
21 changes: 21 additions & 0 deletions spk/mantisbt/src/conf_6/resource
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

{
"mariadb10-db": {
"admin-account-m10": "root",
"admin-pw-m10": "{{wizard_mysql_password_root}}",
"create-db": {
"db-collision": "skip",
"db-name": "mantisbt",
"flag": "{{wizard_create_db}}"
},
"drop-db-uninst": true,
"drop-user-uninst": true,
"grant-user": {
"db-name": "mantisbt",
"flag": "{{mysql_grant_user}}",
"host": "localhost",
"user-name": "mantisbt",
"user-pw": "{{wizard_mysql_password_mantisbt}}"
}
}
}
File renamed without changes.
16 changes: 16 additions & 0 deletions spk/mantisbt/src/web/mantisbt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Alias "/mantisbt" "/var/services/web/mantisbt"

<Proxy "unix:/run/php-fpm/php-com-synocommunity-packages-mantisbt.sock|fcgi://mantisbt">
ProxySet timeout=3600
</Proxy>

<Directory "/var/services/web/mantisbt">

<FilesMatch "\.(php[345]?|phtml)$">
SetHandler "proxy:fcgi://mantisbt"
</FilesMatch>

<IfModule dir_module>
DirectoryIndex index.php index.htm index.html
</IfModule>
</Directory>
29 changes: 29 additions & 0 deletions spk/mantisbt/src/web/mantisbt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"backend": 8,
"custom_open_basedir": false,
"display_errors": false,
"enable_cache": true,
"enable_xdebug": false,
"extensions": [
"curl",
"gd",
"ldap",
"mysqli",
"pdo_mysql",
"soap",
"zlib"
],
"fpm_settings": {
"max_children": 20,
"max_spare_servers": 3,
"min_spare_servers": 1,
"mode": "dynamic",
"start_servers": 2
},
"open_basedir": "",
"php_settings": {
"mysqli.default_socket": "/run/mysqld/mysqld10.sock"
},
"profile_desc": "PHP Profile for mantisbt",
"profile_name": "mantisbt Profile"
}

0 comments on commit d54ae62

Please sign in to comment.