Access via domain name #365
-
Hello, I have successfully installed a Part-DB via docker on the Ubuntu Server. I am now struggling with setting IP addresses. Could someone help me? Part-DB is now running just fine and is accessible via the local IP address (192.168.1.20:8080). However, before I started making labels for all the parts and storage units, I realized that the QR code would need to be regenerated if the IP changes in the future (and all the labels printed again.) To avoid this, I would like to set the Part-DB to be accessible via our domain. In case we change the ISP or our local IP will change, the QR codes will still work. But I am not sure how to correctly do this. Here are the details about the current setup. a) PartDB is installed on a virtual machine, that is physically hosted at my location. The machine is running Proxmox and Part-DB is installed on Ubuntu Server. The local IP address is 192.168.1.20. b) I have a public IP address available. c) I would like to use our domain (www.servis-chomutov.cz) to access the Part-DB from the outside. I am assuming that I will need to make a subdomain (like partdb.servis-chomutov.cz), redirect the DNS to our public IP, and set NAT on the router to forward it to the local IP. But I am not sure about it and would like to ask someone more experienced. Thanks anyone for helping me out! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Yes basically that should work that way. If you want to expose Part-DB to the internet (either on the web server Part-DB or by running a reverse proxy in front of it). In principle you can also still use QR-codes with an old domain, when you use the scanner built-in in Part -DB (it will redirect you to the correct part no matter what the domain in the QR code is). If you want to scan it directly with some normal QR code scanner app it will not work, if the url is not available anymore. |
Beta Was this translation helpful? Give feedback.
-
I can't seem to access my install from a domain name. I'm using a cloudflare tunnel, and the page appears, but all the css is missing, and there's multiple errors in the browser console.
|
Beta Was this translation helpful? Give feedback.
Yes basically that should work that way. If you want to expose Part-DB to the internet (either on the web server Part-DB or by running a reverse proxy in front of it).
And if you don't need it public accessible, then you can just configure a local domain in your router (or even the hosts file of your PC), with a domain like partdb.lan
In principle you can also still use QR-codes with an old domain, when you use the scanner built-in in Part -DB (it will redirect you to the correct part no matter what the domain in the QR code is). If you want to scan it directly with some normal QR code scanner app it will not work, if the url is not available anymore.