Skip to content

Commit 7f133d2

Browse files
authored
Merge pull request #1842 from jrha/cleanup-metaconfig-nginx
ncm-metaconfig: nginx: Fix wrapping and indentation in pan
2 parents ca05d8c + d82d93d commit 7f133d2

File tree

1 file changed

+7
-4
lines changed
  • ncm-metaconfig/src/main/metaconfig/nginx/tests/profiles

1 file changed

+7
-4
lines changed

ncm-metaconfig/src/main/metaconfig/nginx/tests/profiles/config.pan

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@ prefix "/software/components/metaconfig/services/{/etc/nginx/nginx.conf}/content
1616
s["location"][0]["name"] = '^/\d+/.*repodata';
1717
s["location"][0]["operator"] = "~";
1818
s["location"][0]["proxy"] = create("pkg-cache",
19-
"pass", "https://restricted-packages");
19+
"pass", "https://restricted-packages",
20+
);
2021

2122
s["location"][1]["name"] = "repodata";
2223
s["location"][1]["operator"] = "~";
2324
s["location"][1]["proxy"] = create("pkg-cache",
2425
"pass", "https://restricted-packages",
25-
"cache", null);
26+
"cache", null,
27+
);
2628
s["location"][2]["name"] = "/";
2729
s["location"][2]["proxy"] = create("pkg-cache",
28-
"pass", "https://restricted-packages");
30+
"pass", "https://restricted-packages",
31+
);
2932

3033

3134
s["listen"][0]["ssl"] = true;
@@ -59,7 +62,7 @@ prefix "/software/components/metaconfig/services/{/etc/nginx/nginx.conf}/content
5962
"name", "/",
6063
"operator", "=",
6164
"return", dict("code", 301, "url", "https://$host/default"),
62-
));
65+
));
6366

6467
"upstream/secure/host/0" = format("%s:446", SERVER);
6568

0 commit comments

Comments
 (0)