Notion Answers

Help between Notion users


Register & Ask

It's free & easy

Get answers

Answers, votes & comments

Vote and select answers

Receive points, vote and give the solution

Question

1vote

Is custom image url support non-80 or non-443 port?

I want to store my image or icon in my image server, but my image domain is non-80 and non-443 port, just like https://mypic.xxx.net:8888/abc.jpg . It can visit the image on the browser by this the url, but in notion it show me 404.

1 Answer

0vote

polle Points90570

If your server is configured correctly, then there will be no problem with Notion.

If your server download the images instead of displaying them in the browser, if it sends the incorrect MIME type, if it has hot linking protection, etc... Then it will not work.

So basically you have to configure your server correctly and everything should work just fine with Notion.

0vote

Raysonlu commented

I try the other image service which can provide me 443 port temporarily, just like https://7bull.raysonlu.space/docker.png. It work on notion and website.So is it not support non-80 and non-443 port?

0vote

polle commented

I believe the :7010 in the URL is causing a problem in the Notion http request. Try configuring your server to use natural URLs, as the second one you shared.

0vote

Raysonlu commented

What is "natural URLs" ? The ":7010" is the url port, the part of a url syntax URL Wiki

0vote

polle commented

I know, but it is not present in the URLs as you can see in any website that exists. Configure the server to use natural URLs without the port in it and try.

1vote

Raysonlu commented

I know your means, just like saying the Notion not support non-80 or non-443 port.
Any website have their port and the default port is 80 or 443.
You can try the https://7bull.raysonlu.space:443/docker.png, it also work on the notion.

0vote

polle commented

That is correct, I suggested that to try and see if that can be a conflict using those other ports in the URL when Notion does the http request. Curious in why you setup things to use other ports?

1vote

Raysonlu commented

To building accessible websites in CN is complex.
Anyways, port is a base part of a url. I konw the pics or icons showned on Notion should be have a middle handle, the Notion server maybe consider the safety promble so that limit other ports, but I think the part of custom link should be requested by client.

0vote

polle commented

Yes, it seems security is the main reason on why it is not working like you need with Notion. You could create an images bucket using port 80, like a dedicated Notion repository for your images, just a thought.

0vote

Raysonlu commented

Emmmm, I find and ask this question beacuse of I can't use the port 80 or 443.Network not only this two ports. Hope to see the Notion will support that in the future.

0vote

polle commented

Time will tell, and if there are no security reasons, is something we may see.

Please log in or register to answer this question.

...

Welcome to Notion Answers, where you can ask questions and receive answers from other members of the community.

Please share to grow the Notion Community!

Connect