Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Binhex-airsonic with letsencrypt

Featured Replies

Hi,  I am trying to get airsonic to be visible on my external domain. I followed spaceinvaderone's video on setting up reverse proxy for nextcloud however I can not figure  out how to implement this for air sonic. I have next cloud up and running however dont know what needs to be put in the conf file for airsonic

 

any help is much appreciated

 

thanks

  • 6 months later...

James,

 

I struggled with this for quite a while as well with my duckdns subdomain & letsencrypt configuration.  Here is the config I pieced together from several places that finally worked.  I placed it here:

 

\Appdata\letsencrypt\nginx\proxy-confs
airsonic.subdomain.conf


Replace XXXXXX with your own domain name

Replace proxy_pass ip with the IP of your server (mine was 192.168.0.30)

 

 

----------------
# Redirect HTTP to HTTPS
server {
    listen      80;
    server_name XXXXXXX.duckdns.org;
    return      301 https://$server_name$request_uri;
}

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name XXXXXXXXX.duckdns.org;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;


 # Proxy to the Airsonic server
    location / {
        proxy_set_header X-Real-IP         $remote_addr;
        proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header X-Forwarded-Host  $http_host;
        proxy_set_header Host              $http_host;
        proxy_max_temp_file_size           0;
        proxy_pass                         http://192.168.0.30:4040;
        proxy_redirect                     http:// https://;
    }
}

  • 1 year later...
On 3/22/2019 at 7:55 PM, pancho said:

James,

 

I struggled with this for quite a while as well with my duckdns subdomain & letsencrypt configuration.  Here is the config I pieced together from several places that finally worked.  I placed it here:

 

\Appdata\letsencrypt\nginx\proxy-confs
airsonic.subdomain.conf


Replace XXXXXX with your own domain name

Replace proxy_pass ip with the IP of your server (mine was 192.168.0.30)

 

 

----------------
# Redirect HTTP to HTTPS
server {
    listen      80;
    server_name XXXXXXX.duckdns.org;
    return      301 https://$server_name$request_uri;
}

server {
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name XXXXXXXXX.duckdns.org;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;


 # Proxy to the Airsonic server
    location / {
        proxy_set_header X-Real-IP         $remote_addr;
        proxy_set_header X-Forwarded-For   $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto https;
        proxy_set_header X-Forwarded-Host  $http_host;
        proxy_set_header Host              $http_host;
        proxy_max_temp_file_size           0;
        proxy_pass                         http://192.168.0.30:4040;
        proxy_redirect                     http:// https://;
    }
}

Hi guys - sorry to revive a very old post, but this is the first post I've found that seems to relate directly to my specific circumstances.

 

In the config you mention above, you have the relevant port 80 and 443. In my Airsonic setup I have a different TCP (and UDP) port setup - does this change any of this, or will the first port of call (see what I did there?) still bee 443 for SSL? For example, my Airsonic might be on port 4444 (TCP).

 

I've added the Airsonic docker onto the relevant network I created for Lets Encrypt (and Nextcloud) to run across, and added in to the Let's Encrypt docker the subdomain entry I wanted to use (for example 'music'). I do all of this and update the config as above, but SSL still fails.

 

What am I missing here, aside from a fundamental network understanding! :)

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.