1
mirror of https://github.com/jakejarvis/mastodon-utils.git synced 2025-04-26 03:25:22 -04:00
mastodon-utils/etc/nginx/nginx.conf

51 lines
806 B
Nginx Configuration File

user mastodon; # jake: changed from nginx
worker_processes auto;
pid /run/nginx.pid;
# jake: added
load_module modules/ngx_http_brotli_filter_module.so;
load_module modules/ngx_http_brotli_static_module.so;
events {
worker_connections 768;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
# jake: added (prometheus target)
server {
listen 9181;
location /metrics {
stub_status on;
allow 127.0.0.1;
deny all;
}
}
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Virtual Host Configs
##
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}