Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from votdev/continue_issue_100
Continue to use Salt Stack to manage the configuration files.
- Loading branch information
Showing
7 changed files
with
94 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 0 additions & 49 deletions
49
deb/openmediavault/etc/php/7.0/fpm/pool.d/openmediavault-webgui.conf
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
deb/openmediavault/srv/salt/omv/deploy/phpfpm/10webgui.sls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# This file is part of OpenMediaVault. | ||
# | ||
# @license http://www.gnu.org/licenses/gpl.html GPL Version 3 | ||
# @author Volker Theile <volker.theile@openmediavault.org> | ||
# @copyright Copyright (c) 2009-2018 Volker Theile | ||
# | ||
# OpenMediaVault is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# any later version. | ||
# | ||
# OpenMediaVault is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with OpenMediaVault. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
configure_phpfpm_webgui: | ||
file.managed: | ||
- name: "/etc/php/7.0/fpm/pool.d/openmediavault-webgui.conf" | ||
- contents: | | ||
[openmediavault-webgui] | ||
user = openmediavault-webgui | ||
group = openmediavault-webgui | ||
listen = /var/run/php-fpm-openmediavault-webgui.sock | ||
listen.owner = www-data | ||
listen.group = www-data | ||
listen.mode = 0600 | ||
|
||
pm = ondemand | ||
pm.max_children = 25 | ||
pm.process_idle_timeout = 10s | ||
|
||
chdir = / | ||
|
||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
; openmediavault php.ini settings ; | ||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ||
|
||
; Paths and Directories | ||
php_value[include_path] = ".:/usr/share/php:/var/www/openmediavault" | ||
; Pam Authentication Support (see /etc/pam.d) | ||
php_value[pam.servicename] = "openmediavault-webgui"; | ||
|
||
; Maximum allowed size for uploaded files. | ||
; http://php.net/upload-max-filesize | ||
php_value[upload_max_filesize] = 25M | ||
|
||
; Maximum size of POST data that PHP will accept. | ||
; http://php.net/post-max-size | ||
php_value[post_max_size] = 25M | ||
|
||
; Do not expose to the world that PHP is installed on the server. | ||
; http://php.net/expose-php | ||
php_value[expose_php] = Off | ||
|
||
; Name of the session (used as cookie name). | ||
; http://php.net/session.name | ||
php_value[session.name] = X-OPENMEDIAVAULT-SESSIONID | ||
|
||
; Default timeout for socket based streams (seconds) | ||
; http://php.net/default-socket-timeout | ||
php_value[default_socket_timeout] = 90 | ||
|
||
; Maximum execution time of each script, in seconds | ||
; http://php.net/max-execution-time | ||
; Note: This directive is hardcoded to 0 for the CLI SAPI | ||
php_value[max_execution_time] = 90 | ||
- mode: 644 | ||
- watch_in: | ||
- service: restart_phpfpm_service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters