Documentation
Guides & automation

Basic Auth

Secure your apps with basic auth

Add a browser username/password prompt by running your HTTP service privately behind a basic-auth proxy.

Prerequisites

  • A Sliplane account
  • A private HTTP service that you want to secure with basic auth

Setup

  1. Fork the basic-auth-proxy repository

  2. Give Sliplane access to your forked repository

  3. Set the healthcheck to /health

  4. Set the following environment variables:

    PORT=8080
    HTTP_BASIC_AUTH_USER=yourusername
    HTTP_BASIC_AUTH_PASSWORD=yourpassword
    PRIVATE_WEBSITE_URL=the-url-of-your-private-service, including protocol and port

    You can find the private website URL by clicking on the service in the Sliplane dashboard and looking at the URL field.

  5. Deploy the service

Basic authentication deployment settings in Sliplane

Open the proxy’s public URL and sign in with the configured username and password.

How is this guide?

On this page