diff --git a/README.md b/README.md index 8863896..27e13d1 100644 --- a/README.md +++ b/README.md @@ -125,8 +125,9 @@ list has been trimmed down a bit, we'll actually migrate & deploy the site. * General * Haskell `manage.hs` script for running server & client watchers in one terminal(see SESE website repo). - * Migration script from old django DB to new DB * Clean shutdowns using signals + * Add `/health` route for docker health checks - should hit the DB. Write + custom production logger that ignores requests to the route. * Blog Posts * Paginated list route? * Prev/Next links on details page diff --git a/deploy/nginx/nginx.conf b/deploy/nginx/nginx.conf index 5ec4b30..38ed4f8 100644 --- a/deploy/nginx/nginx.conf +++ b/deploy/nginx/nginx.conf @@ -111,6 +111,15 @@ server { set $api_server api; proxy_pass http://$api_server:9001$1$is_args$args; } + + # Redirects for Old Post URLs + rewrite ^/setup-minecraft-mcmyadmin-on-slackware-141/?$ /post/setup-minecraft-mcmyadmin-on-slackware-141/ permanent; + rewrite ^/declarative-specifications-of-user-profiles-with-the-nix-package-manager/?$ /post/declarative-specifications-of-user-profiles-with-the-nix-package-manager/ permanent; + rewrite ^/using-selectizejs-autocompletes-with-django-ajax/?$ /post/using-selectizejs-autocompletes-with-django-ajax/ permanent; + rewrite ^/build-a-bootstrap-theme-from-a-vim-color-scheme/?$ /post/build-a-bootstrap-theme-from-a-vim-color-scheme/ permanent; + rewrite ^/adding-draft-approval-workflow-to-formidable-entries/?$ /post/adding-draft-approval-workflow-to-formidable-entries/ permanent; + rewrite ^/automatically-upgrading-a-sendy-instance/?$ /post/automatically-upgrading-a-sendy-instance/ permanent; + rewrite ^/custom-404-page-headway-wordpress/?$ /post/custom-404-page-headway-wordpress/ permanent; } server {