Skip to content
Jona Abdinghoff edited this page Jun 1, 2018 · 16 revisions

nginx

basic

location /register {
    alias resources/example.html;

    limit_except POST {
        proxy_pass http://localhost:5000;
    }
}

advanced

If you want to create/disable/list tokens not just locally, but also over the internet you should also proxy pass the /token location.

location /token {
    proxy_pass http://localhost:5000;
}

To access this URL you need to send a Authorization Header with your shared secret

Authorization: SharedSecret verysecuresecret
Clone this wiki locally