Mise à jour de 'nginx.conf'
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
23c8956940
commit
ab4512d092
@ -1,26 +1,11 @@
|
|||||||
worker_processes 4;
|
server {
|
||||||
|
listen 80 default_server;
|
||||||
|
|
||||||
events {
|
root /usr/share/nginx/html;
|
||||||
worker_connections 1024;
|
|
||||||
}
|
|
||||||
|
|
||||||
http {
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name YOUR_SERVER_NAME;
|
|
||||||
charset utf-8;
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
index index.html;
|
|
||||||
|
|
||||||
#Always serve index.html for any request
|
index index.html;
|
||||||
location / {
|
|
||||||
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;
|
location / {
|
||||||
add_header X-Content-Type-Options nosniff;
|
try_files $uri /index.html =404;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue