Mise à jour de 'nginx.conf'
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
4480ec09ef
commit
23c8956940
@ -1,11 +1,26 @@
|
|||||||
server {
|
worker_processes 4;
|
||||||
listen 80 default_server;
|
|
||||||
|
|
||||||
root /usr/share/nginx/html;
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
http {
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name YOUR_SERVER_NAME;
|
||||||
|
charset utf-8;
|
||||||
|
root /usr/share/nginx/html;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
|
#Always serve index.html for any request
|
||||||
location / {
|
location / {
|
||||||
try_files $uri /index.html =404;
|
try_files $uri /index.html;
|
||||||
|
include /etc/nginx/mime.types; <- this fixed my problem with css being read as `text/plain` mimetype
|
||||||
|
}
|
||||||
|
error_log /var/log/nginx/client-error.log;
|
||||||
|
access_log /var/log/nginx/client-access.log;
|
||||||
|
|
||||||
|
server_tokens off;
|
||||||
|
add_header X-Content-Type-Options nosniff;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue