-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…exemplo de configuração PHP-FPM
- Loading branch information
Showing
8 changed files
with
124 additions
and
18 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
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
3 changes: 0 additions & 3 deletions
3
logbook/aguia-pescadora-bravo/etc/nginx/sites-available/default
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
31 changes: 26 additions & 5 deletions
31
logbook/aguia-pescadora-bravo/etc/nginx/sites-available/grafana.apb.etica.ai.conf
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 |
---|---|---|
@@ -1,14 +1,35 @@ | ||
# FILE: /etc/nginx/sites-available/grafana.abp.etica.ai.conf | ||
# FILE: /etc/nginx/sites-available/grafana.apb.etica.ai.conf | ||
|
||
server { | ||
|
||
listen 80; | ||
listen [::]:80; | ||
|
||
server_name grafana.abp.etica.ai; | ||
server_name grafana.apb.etica.ai; | ||
|
||
location / { | ||
proxy_ignore_client_abort on; | ||
proxy_pass http://127.0.0.1:20200; | ||
} | ||
|
||
listen [::]:443 ssl; # managed by Certbot | ||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/grafana.apb.etica.ai/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/grafana.apb.etica.ai/privkey.pem; # managed by Certbot | ||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
|
||
} | ||
|
||
server { | ||
if ($host = grafana.apb.etica.ai) { | ||
return 301 https://$host$request_uri; | ||
} # managed by Certbot | ||
|
||
|
||
|
||
listen 80; | ||
listen [::]:80; | ||
|
||
server_name grafana.apb.etica.ai; | ||
return 404; # managed by Certbot | ||
|
||
|
||
} |
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
21 changes: 21 additions & 0 deletions
21
logbook/aguia-pescadora-bravo/etc/php/7.2/fpm/pool.d/USUARIO.conf.EXEMPLO
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,21 @@ | ||
[USUARIO] | ||
|
||
; Use ";" para comentarios | ||
; Se usar "#" causa erro de sintaxe | ||
|
||
user = USUARIO | ||
group = USUARIO | ||
|
||
listen = /run/php/php7.2-fpm-USUARIO.sock | ||
|
||
listen.owner = USUARIO | ||
listen.group = www-data | ||
|
||
pm = dynamic | ||
pm.max_children = 5 | ||
pm.start_servers = 1 | ||
pm.min_spare_servers = 1 | ||
pm.max_spare_servers = 3 | ||
|
||
php_flag[display_errors] = on | ||
php_admin_value[error_log] = /home2/USUARIO/log/fpm-php.USUARIO.log |
18 changes: 18 additions & 0 deletions
18
logbook/aguia-pescadora-bravo/etc/php/7.2/fpm/pool.d/phpmyadmin.conf
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,18 @@ | ||
[phpmyadmin] | ||
|
||
user = www-data | ||
group = www-data | ||
|
||
listen = /run/php/php7.2-fpm-phpmyadmin.sock | ||
|
||
listen.owner = www-data | ||
listen.group = www-data | ||
|
||
pm = dynamic | ||
pm.max_children = 5 | ||
pm.start_servers = 1 | ||
pm.min_spare_servers = 1 | ||
pm.max_spare_servers = 3 | ||
|
||
;php_flag[display_errors] = on | ||
;php_admin_value[error_log] = /home2/USUARIO/log/fpm-php.USUARIO.log |
3 changes: 3 additions & 0 deletions
3
logbook/aguia-pescadora-bravo/usr/share/phpmyadmin/config.inc.php
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,3 @@ | ||
<?php | ||
|
||
$cfg['Servers'][$i]['host'] = '127.0.0.1'; |