malnvenshorn / OctoPrint-FilamentManager

OctoPrint plugin to manage your filament inventory
GNU Affero General Public License v3.0
131 stars 59 forks source link

No connection to postgres if outside of network #180

Closed taker218 closed 4 years ago

taker218 commented 4 years ago

Describe the bug I set up the Filament manager on two of my systems and use a shared postgresql database on a third system (my home server). I routed both OctoPrint instances to the internet via a reverse proxy. No I wanted to check how much filament is on one of my printers and I can't see any of the spools I have in my database.

It seems like the database connection is made from the client, not from the server.

Steps to reproduce

  1. Use external SQL database
  2. add spools
  3. use Octoprint from outside your network via reverse proxy
  4. try to select a spool

Expected behavior The connection to the database should be done from the server, not from the client so you can also use the printer when you are outside of your network and don't want to open the ports to postgresql in your router.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

taker218 commented 4 years ago

Never mind, it seems like my database was shut down for another reason.

Closing this ticket.