[pooluser]
listen = 127.0.0.1:9001
user = pooluser
group = users
request_slowlog_timeout = 5s
slowlog = /var/log/php-fpm/slowlog-domain.log
listen.allowed_clients = 127.0.0.1
pm = ondemand
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 group is read both by the client and the server | |
# use it for options that affect everything | |
# | |
[client-server] | |
# This will be passed to all MariaDB clients | |
[client] | |
# The MariaDB server |
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
server { | |
listen 80; | |
server_name www.mydomain.com mydomain.com; | |
return 301 https://mydomain.com$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name www.mydomain.com; | |
# managed by Certbot stuff |
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
user nginx nginx; | |
worker_processes auto; #some last versions calculate it automatically | |
# number of file descriptors used for nginx | |
# the limit for the maximum FDs on the server is usually set by the OS. | |
# if you don't set FD's then OS settings will be used which is by default 2000 | |
worker_rlimit_nofile 100000; | |
# only log critical errors |
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
<?php | |
# $config['enableListeners'] = false; | |
$config['db']['host'] = 'localhost'; | |
$config['db']['port'] = '3306'; | |
$config['db']['username'] = ''; | |
$config['db']['password'] = ''; | |
$config['db']['dbname'] = ''; | |
$config['db']['socket'] = null; | |
$config['fullUnicode'] = true; #unicode emotes |
Three example nginx locations and the PHP required for mp4 secure_links.
before: https://https://mydomain.com/data/videos/file.mp4
after : https://mydomain.com/data/videos/file.mp4?md5=Vtzs2WCnCqRsE47EH6U6pQ&expires=1617601227
make sure the secret password you use match in both lines below
$remote_addr secretword << in nginx config section