computer-playbook/roles/docker-mybb/templates/default.conf

53 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-12-24 14:27:31 +01:00
upstream mybb {
server application:9000 weight=5;
}
server {
listen 80;
2023-12-06 11:36:18 +01:00
error_log stderr debug;
2020-12-24 14:27:31 +01:00
root /var/www/html;
index index.html index.php;
2023-12-06 13:44:57 +01:00
worker_processes auto;
2020-12-24 14:27:31 +01:00
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ inc/ {
internal;
}
location ~ ^/(images|cache|jscripts|uploads)/ {
access_log off;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass mybb;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
2023-12-06 11:36:18 +01:00
2023-12-06 13:44:57 +01:00
# client timeout
keepalive_timeout 60s;
client_header_timeout 60s;
client_body_timeout 60s;
send_timeout 300s;
reset_timedout_connection on;
2023-12-06 11:36:18 +01:00
# proxy timeouts
proxy_connect_timeout 300s;
proxy_send_timeout 300s;
proxy_read_timeout 300s;
send_timeout 300s;
# fastcgi timeouts
fastcgi_read_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_connect_timeout 300s;
2020-12-24 14:27:31 +01:00
}
}