Reverse proxy - jlazic/GlogSMS GitHub Wiki
While using reverse proxy in front of gunicorn for GlogSMS is not 100% mandatory, it's highly recommended. Gunicorn is application server, and can't serve static content like css and js files. For that we need nginx (or Apache). Here I will explain howto install and configure nginx while Apache will be explained later.
First, install nginx with apt
sudo apt install nginx
You must be inside GlogSMS root directory, in my case that is /home/django/stes/sms/. Copy initial nginx config from scripts/nginx.conf to nginx configuration directory.
sudo cp -v scripts/nginx.conf /etc/nginx/sites-available/glogsms
We can remove symlink from sites_enabled directory pointing to default nginx configuration
rm -v /etc/nginx/sites-enabled/default
and not we can "enable" GlogSMS nginx config by symlinking it to sites-enabled directory
sudo ln -s /etc/nginx/sites-available/glogsms /etc/nginx/sites-enabled/glogsms
Now it's the time to edit /etc/nginx/sites-available/glogsms with your favorite text editor, and configure server name, and some directory paths. Just refer yourself to comments inside config file.
Last step is to restart nginx
sudo service nginx restart
Congratulations, now you have fully functional SMS gateway. It's time to add and configure mobile phones.