To enable transcoding:
https://yourdomain.com

Step 6: Access Subsonic from Mobile Devices

In this guide, we’ll walk you through the complete installation, configuration, and optimization of Subsonic on a Ubuntu and Debian system, with best practices for security and performance.

Why Choose Subsonic?

With Subsonic, you can enjoy your favorite media anytime, anywhere, making it the perfect media server for both home and enterprise use.

  • Access your entire collection from any device with a browser.
  • Compatible with MP3, AAC, FLAC, OGG, WMA, and more.
  • Control and stream media on Android, iOS, and smart TVs.
  • Automatically convert audio/video formats for compatibility.
  • Create multiple users with different access levels.
  • Podcasts and web radio directly from the interface.
Subsonic - Personal Media Streamer
Subsonic – Personal Media Streamer

Step 1: Install Subsonic on Ubuntu and Debian

sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod ssl

sudo apt update && sudo apt upgrade -y

Example:
Subsonic offers a robust, feature-packed alternative to legacy streaming platforms. Whether you’re streaming audio or video, it provides a secure, user-friendly experience with superior media management, transcoding, and remote access capabilities.
sudo dpkg -i subsonic-6.1.6.deb
sudo apt-get -f install

Subsonic is a feature-rich, web-based media server that allows you to:

Subsonic Change Admin Password
Subsonic Change Admin Password

Step 2: Configure Media Folders

sudo ln -s /etc/nginx/sites-available/subsonic.conf /etc/nginx/sites-enabled/
sudo systemctl restart nginx

Option 2: Configure Apache as a Reverse Proxy for Subsonic

wget https://sourceforge.net/projects/subsonic/files/subsonic-6.1.6.deb

server {
listen 80;
server_name yourdomain.com www.yourdomain.com;

location / {
proxy_pass http://127.0.0.1:4040/;
proxy_set_header Host $host;
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 $scheme;

# Websocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
}

# Enable Gzip for better performance
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
}

http://localhost:4040

Subsonic Admin Login
Subsonic Admin Login

Click Save, and Subsonic will automatically scan the folders and add your media to its library.

  • Go to Settings > Transcoding.
  • Add the necessary transcoding commands for different formats:

sudo certbot –nginx -d yourdomain.com -d www.yourdomain.com
OR
sudo certbot –apache -d yourdomain.com -d www.yourdomain.com

sudo apt update
sudo apt install certbot python3-certbot-nginx python3-certbot-apache -y

If you’re looking for a powerful and easy-to-use media streaming solution, Subsonic is an excellent choice to access your music library remotely, share your collection with friends, or even stream videos.
<VirtualHost *:80>
ServerName yourdomain.com
ServerAlias www.yourdomain.com

ProxyRequests Off
ProxyPass / http://127.0.0.1:4040/
ProxyPassReverse / http://127.0.0.1:4040/

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ErrorLog ${APACHE_LOG_DIR}/subsonic_error.log
CustomLog ${APACHE_LOG_DIR}/subsonic_access.log combined
</VirtualHost>

sudo apt install nginx -y

If Nginx is not already installed, use the following command:
Subsonic needs to know where your music and videos are stored, so follow these steps to add your media folders:
sudo nano /etc/nginx/sites-available/subsonic.conf

sudo nano /etc/apache2/sites-available/subsonic.conf

sudo a2ensite subsonic.conf
sudo systemctl restart apache2

Step 5: Secure Subsonic with HTTPS

sudo apt install apache2 -y

sudo apt install openjdk-8-jre ffmpeg curl -y

Subsonic gives you full control over your media anytime, anywhere and it is packed with useful features and comes with apps for Android and iOS, making it a versatile media server.
After configuration, you can access Subsonic securely via:
A reverse proxy forwards incoming HTTP/HTTPS requests to the Subsonic backend running on port 4040, which is not only improves security but also enables you to access Subsonic using a custom domain with HTTPS.
ffmpeg -i %s -map 0:0 -b:a 128k -v 0 -f mp3 –

Before installing Subsonic, make sure your system has the latest updates, which prevent errors and ensure compatibility.
Subsonic supports real-time transcoding to ensure smooth playback of various file formats.

Similar Posts