Skip to content

Commit

Permalink
Merge pull request #516 from Xpirix/link_redirection_conf
Browse files Browse the repository at this point in the history
Add the redirection to the nginx configuration
  • Loading branch information
Xpirix authored Feb 3, 2025
2 parents caae25b + 29b4e79 commit 494c3d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dockerize/sites-enabled/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ if [ $# -eq 1 ]; then
echo "Run in prod mode"
CONF_FILE=prod.conf
ln -s /etc/nginx/sites-available/$CONF_FILE /etc/nginx/conf.d/$CONF_FILE
ln -s /etc/nginx/sites-available/redirections.conf /etc/nginx/redirections.conf
exec nginx -g "daemon off;"
;;
# Production SSL mode, run using uwsgi
[Pp][Rr][Oo][Dd][-][Ss][Ss][Ll])
echo "Run in prod SSL mode"
CONF_FILE=prod-ssl.conf
ln -s /etc/nginx/sites-available/$CONF_FILE /etc/nginx/conf.d/$CONF_FILE
ln -s /etc/nginx/sites-available/redirections.conf /etc/nginx/redirections.conf
exec nginx -g "daemon off;"
;;
esac
Expand Down

0 comments on commit 494c3d2

Please sign in to comment.