Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

kdomanski/comaha

Repository files navigation

Comaha update server for coreos

DISCLAIMER: "COREOS" is a trademark of CoreOS, Inc.

Nginx reverse proxy config

Endpoints

Basically, the following endpoints need to be proxied for proper operation:

  • /file
  • /update
  • /panel
  • /admin/

It is highly suggested to set up http basic authentication for /admin/ path.

Headers

Set the following headers for /update endpoint:

proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host:$server_port;

It will enable assembling proper URLs for local file storage.

Set this for all endpoints to enable proper remote address logging:

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;