abkfenris / baxter-flask

Avalanche and geospatial data system for Baxter State Park
0 stars 1 forks source link

Use SSL #43

Open abkfenris opened 9 years ago

abkfenris commented 9 years ago

Should have SSL configured.

Get a wildcard cert from somewhere like StartSSL - trusted on most desktops and mobiles, but not windows phone maybe?

Force ssl for /admin with something like:

server {
     location /admin {
        rewrite ^ https://$http_host$request_uri? permanent;
    }
}

server {
    listen 443;
    location /api/1.0/trail {
        rewrite ^ http://$http_host$request_uri? permanent;
    }
}

Which has it reverting back to http for trail api, and maybe other api calls so that proxies can cache them better?

Strong SSL Security on nginx

SSL in Postgres