Dockerfile, nginx.conf: add configuration for vcard file type
This commit is contained in:
parent
faa74fde1d
commit
46e1b3e57d
|
@ -12,3 +12,4 @@ RUN jekyll build
|
||||||
|
|
||||||
FROM nginx
|
FROM nginx
|
||||||
COPY --from=builder /home/_site /usr/share/nginx/html
|
COPY --from=builder /home/_site /usr/share/nginx/html
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
# vim:set et sw=4 ts=4:
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
index index.html index.htm;
|
||||||
|
}
|
||||||
|
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
location = /50x.html {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~* \.vcf$ {
|
||||||
|
default_type text/vcard;
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue