All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 34s
38 lines
1008 B
Nginx Configuration File
38 lines
1008 B
Nginx Configuration File
events {
|
|
worker_connections 4096;
|
|
}
|
|
|
|
http {
|
|
# Log format
|
|
log_format main '[$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"';
|
|
|
|
access_log /dev/stdout main; # Log access to stdout
|
|
error_log /dev/stdout; # Log errors to stdout
|
|
|
|
include mime.types; # Include the mime types file
|
|
default_type application/octet-stream; # Default type
|
|
|
|
server {
|
|
server_name _; # Listen on all hostnames
|
|
listen 80; # Listen on port 80
|
|
|
|
root /var/www/html; # Serve files from /var/www/html
|
|
|
|
# Gzip
|
|
gzip on;
|
|
gzip_disable "msie6";
|
|
gzip_vary on;
|
|
gzip_proxied any;
|
|
gzip_comp_level 8;
|
|
gzip_buffers 16 64k;
|
|
gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
|
|
|
# Serve your files
|
|
location / {
|
|
expires 1h; # Cache files for 1 hour
|
|
|
|
# Serve the file directly from disk
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
}
|
|
} |