mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 17:05:32 +00:00
35 lines
864 B
Nginx Configuration File
35 lines
864 B
Nginx Configuration File
daemon off;
|
|
user www-data;
|
|
worker_processes auto;
|
|
|
|
events {
|
|
worker_connections 768;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
server_names_hash_bucket_size 256;
|
|
server_names_hash_max_size 1024;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
keepalive_timeout 65;
|
|
types_hash_max_size 2048;
|
|
log_format seafileformat '$http_x_forwarded_for $remote_addr [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $upstream_response_time';
|
|
|
|
access_log /var/log/nginx/access.log seafileformat;
|
|
error_log /var/log/nginx/error.log info;
|
|
|
|
gzip on;
|
|
gzip_types text/plain text/css application/javascript application/json text/javascript;
|
|
|
|
include /etc/nginx/conf.d/*.conf;
|
|
include /etc/nginx/sites-enabled/*;
|
|
|
|
server {
|
|
listen 80;
|
|
location / {
|
|
return 444;
|
|
}
|
|
}
|
|
}
|