Files
HomeServerCTs/CT-Files/heimdall/Configs/nginx.conf
Bram Prieshof 6c182a2ec7 Fixed FirstSetup and upgraded Alpine to 3.16 version
"FirstSetup": now installes go form official website

CT ElkarbackupALP: New use old stable repo(3.15) for php7 since is is obeleted in 3.16

CT HeimdallCT: Switched to php8 and when git cloing using 2.x branch instead of master
2022-07-01 00:45:21 +02:00

50 lines
1.4 KiB
Nginx Configuration File

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
server_tokens off;
client_body_buffer_size 10K;
client_header_buffer_size 1k;
client_max_body_size 64m;
large_client_header_buffers 4 4k;
server_names_hash_bucket_size 64;
root /usr/share/nginx/html;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log off;
error_log /var/log/nginx/error.log;
#Server config for Heimdall
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /opt/heimdall/public/;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/run/php-fpm8/php-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
}