Skip to content

Commit

Permalink
configure kausal
Browse files Browse the repository at this point in the history
  • Loading branch information
malcolmholmes committed Dec 17, 2020
1 parent 13f7a73 commit df8c7bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion nginx-directory/configfile.libsonnet
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
local k = import 'ksonnet-util/kausal.libsonnet';
local kausal = import 'ksonnet-util/kausal.libsonnet';
{
local _config = self._config,
local k = kausal { _config+:: _config },

local buildHeaders(service, redirect, allowWebsockets, subfilter) =
if redirect then |||
return 302 %(url)s;
Expand Down
4 changes: 3 additions & 1 deletion nginx-directory/deployment.libsonnet
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
local k = import 'ksonnet-util/kausal.libsonnet';
local kausal = import 'ksonnet-util/kausal.libsonnet';
{
local _config = self._config,
local k = kausal { _config+:: _config },
local container = k.core.v1.container,

nginx_container::
Expand Down

0 comments on commit df8c7bb

Please sign in to comment.