How to configure a domain name for Spotipo

After configuring the domain name, spotipo will be accessible only via the domain name. If you have used server IP on any of the AP settings, please change it before itself.

Assigning a domain name to Spotipo is required for Campaigns to work.

Assign a domain name to your Spotipo Server

Acquire a domain name or create a sub domain of the existing domain name and assign it your server's IP.

Next test it out by going to http://yourdomain.name and ensure you can access spotipo.

Configure Spotipo to listen only on domain

Run the following command to force spotipo to listen only on the domain name. Remember to replace yourdomain.name with the actual domain name.

sudo echo "SERVER_NAME='yourdomain.name'" >> /usr/share/nginx/spotipo/instance/config.py
sudo supervisor restart


How did we do?