I'm running gunicorn and nginx on a Digital Ocean droplet. The issue I'm facing is that my config files for these services are at
/etc/nginx/sites-enabled/django
and
/etc/init/gunicorn.conf
while my code is at /src/my_project
My issue is, my source code is under source control. The config files within /etc/
aren't. This question, How do you deal with configuration files in source control?, says you should keep your config files in source control, but it doesn't explain how to configure them.
How do I include my nginx and gunicorn config files in source control with the rest of my django project, while still keeping the config files attached to nginx and gunicorn appropriately on the server? Thanks!