mirror of
https://github.com/coollabsio/coolify-docs.git
synced 2026-06-19 07:35:55 +00:00
48 lines
958 B
Nginx Configuration File
48 lines
958 B
Nginx Configuration File
worker_processes auto;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
# Security headers
|
|
add_header X-Content-Type-Options nosniff;
|
|
add_header X-Frame-Options DENY;
|
|
add_header X-XSS-Protection "1; mode=block";
|
|
|
|
# Disable server tokens
|
|
server_tokens off;
|
|
|
|
# Gzip compression
|
|
gzip on;
|
|
gzip_types
|
|
text/plain
|
|
application/json
|
|
application/javascript
|
|
text/css
|
|
text/xml
|
|
application/xml
|
|
application/xml+rss
|
|
text/javascript;
|
|
|
|
# Server block
|
|
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
location /docs {
|
|
alias /usr/share/nginx/html/docs;
|
|
index index.html;
|
|
try_files $uri $uri/ $uri.html =404;
|
|
}
|
|
|
|
location = /favicon.ico {
|
|
rewrite ^/favicon.ico$ /docs/favicon.ico;
|
|
}
|
|
|
|
}
|
|
}
|