LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-03-2019, 03:34 PM   #1
MnchstrCityBlues79
LQ Newbie
 
Registered: Feb 2019
Posts: 9

Rep: Reputation: Disabled
Using HAProxy in a LXD container to serve requests for specific services in other containers (i.e. Airsonic)


I've reached a road block I just cant seem to overcome and I believe it is because I don't understand how reverse proxies work. Some background: I run Ubuntu 19.04 Server on an Optiplex 3040 with 12gb RAM 120 GB SSD internal and a few terabytes storage via USB HD's. Domain certs have been provided and confirmed via LetsEncrypt.

I intend to use this machine as a home server. Ideally I want it to be as follows:

Host: Ubuntu 19.04 Server running DDClient to update my domain with my dynamic public IP. Requests are made to the host on 80/443 and then forwarded via LXD's proxy device to my HAProxy container.

The HAProxy container is running Ubuntu 18.04 with the following config (for now): haproxy.cfg
As I understand this, if one were to navigate to "airsonic.domain.com" it should then be forwarded to Airsonic.lxd:80 (though what I don't understand is that shouldn't it be forwarded on 443 since I have the certs?)

From there, the Airsonic container running Ubuntu 18.04 w/ NGINX should pick it up via the NGINX reverse proxy: NGINX conf

This **should** provide me with "https://airsonic.domain.com:8080/airsonic" when navigating to "http://airsonic.domain.com"

Code:
Instead I get the following error:

    This site can’t be reached airsonic.domain.com 
    refused to connect.
        Try:

    Checking the connection
    Checking the proxy and the firewall

    ERR_CONNECTION_REFUSED

So does anyone have any idea of whats going on? Secondary question, is it proper to have both the HAProxy container and the Airsonic container referring to the same certs?

Thank you!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Install Airsonic Media Server on Ubuntu 18.04 LTS LXer Syndicated Linux News 0 07-04-2018 02:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration