mirror of
https://github.com/hoellen/docker-nextcloud.git
synced 2025-04-20 04:29:34 +00:00
- update static file extensions - add mjs to mimetype https://github.com/hoellen/docker-nextcloud/issues/60 - remove legacy header https://github.com/hoellen/docker-nextcloud/pull/61
37 lines
743 B
Nginx Configuration File
37 lines
743 B
Nginx Configuration File
worker_processes auto;
|
|
pid /nginx/run/nginx.pid;
|
|
daemon off;
|
|
|
|
events {
|
|
worker_connections 2048;
|
|
use epoll;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
# Add .mjs as a file extension for javascript
|
|
# https://github.com/nextcloud/server/pull/36057
|
|
types {
|
|
application/javascript mjs;
|
|
}
|
|
default_type application/octet-stream;
|
|
|
|
access_log /nginx/logs/access.log combined;
|
|
error_log /nginx/logs/error.log error;
|
|
|
|
client_max_body_size <UPLOAD_MAX_SIZE>;
|
|
|
|
aio threads;
|
|
sendfile on;
|
|
keepalive_timeout 15;
|
|
keepalive_disable msie6;
|
|
keepalive_requests 100;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
server_tokens off;
|
|
|
|
gzip off;
|
|
|
|
include /etc/nginx/conf.d/*.conf;
|
|
}
|