Skip to content

Commit

Permalink
Mount L.E. storage
Browse files Browse the repository at this point in the history
Fix path prefix handling
  • Loading branch information
byrnedo committed Aug 8, 2024
1 parent 51c9d74 commit b4b88dd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion images/nginx-ingress/service.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ server {
add_header X-Request-ID $request_id; # Return to client

{{#each this.http.paths as |path|}}
{{#if (eq path.pathType "prefix")}}
{{#if (eq path.pathType "Prefix")}}
location {{path.path}} {
{{> proxyPassLocation path}}

Expand Down
5 changes: 5 additions & 0 deletions manifests/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@ spec:
- name: ingress
hostPath:
path: /var/lib/skate/ingress
- name: le_storage
hostPath:
path: /var/lib/skate/ingress/letsencrypt_storage
containers:
- name: nginx
image: ghcr.io/skateco/nginx-ingress
volumeMounts:
- mountPath: /var/lib/skate/ingress
name: ingress
- mountPath: /etc/resty-auto-ssl/storage
name: le_storage
2 changes: 1 addition & 1 deletion src/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async fn create_node(args: CreateNodeArgs) -> Result<(), Box<dyn Error>> {
let all_conns = &all_conns.unwrap_or(SshClients { clients: vec!() });


_ = conn.execute("sudo mkdir -p /var/lib/skate/ingress").await?;
_ = conn.execute("sudo mkdir -p /var/lib/skate/ingress /var/lib/skate/ingress/letsencrypt_storage").await?;
// _ = conn.execute("sudo podman rm -fa").await;

setup_networking(&conn, &all_conns, &cluster, &node).await?;
Expand Down
2 changes: 1 addition & 1 deletion src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ impl DefaultExecutor {

let main_template_data = json!({
"letsEncrypt": {
"endpoint": "https://acme-staging-v02.api.letsencrypt.org/directory",
"endpoint": "", //"https://acme-staging-v02.api.letsencrypt.org/directory",
"allowDomains": le_allow_domains
},
});
Expand Down

0 comments on commit b4b88dd

Please sign in to comment.