Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 593 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 593 Bytes

In this guide you will learn how to use Caddy web server to automatically generate an SSL certificate and run ImagineAPI using a domain/subdomain instead of an IP.

  1. Make sure you point a domain to the IP where ImagineAPI is hosted.
  2. git clone git@github.com:imagineapi/ssl.git
  3. cd ssl
  4. Add your email and domain to Caddyfile. For example I want my domain to be demo.imagineapi.dev and my Caddyfile looks like this:
  {
    email team@imagineapi.dev
  }
  
  demo.imagineapi.dev {
    reverse_proxy api:8055
  }
  1. Launch the Caddy server with docker compose up -d