How to enable nginx response http header utf-8 for static website

I have selected "Static" Build Type and the issue is that the response headers don't include utf-8.
HTTP/2 200
accept-ranges: bytes
content-type: text/html
date: Fri, 13 Sep 2024 08:51:39 GMT
etag: "66e303f3-259f"
last-modified: Thu, 12 Sep 2024 15:08:35 GMT
server: nginx/1.27.1
content-length: 9631
X-Firefox-Spdy: h2
HTTP/2 200
accept-ranges: bytes
content-type: text/html
date: Fri, 13 Sep 2024 08:51:39 GMT
etag: "66e303f3-259f"
last-modified: Thu, 12 Sep 2024 15:08:35 GMT
server: nginx/1.27.1
content-length: 9631
X-Firefox-Spdy: h2
I know I can probably create my own dockerfile to do this, but is there no way to just mount the /etc/nginx/conf.d/default.conf file of the static deployment in the advanced tab?
3 Replies
deck0405
deck0405OP8mo ago
Ah, nevermind got it:
deck0405
deck0405OP8mo ago
Advanced > Volumes > Add Volume > File Mount
No description
deck0405
deck0405OP8mo ago
It didn't work before, because I thought the "File Path" field with the tooltip "File Name" will automatically get appended to the "Mount Path (in the container)" so I only had /etc/nginx/conf.d/ in there.

Did you find this page helpful?