Skip to content

Instantly share code, notes, and snippets.

@Openpalm
Last active November 13, 2018 09:42
Show Gist options
  • Select an option

  • Save Openpalm/918d9e9d0d31d5ab68fe92c905d795b4 to your computer and use it in GitHub Desktop.

Select an option

Save Openpalm/918d9e9d0d31d5ab68fe92c905d795b4 to your computer and use it in GitHub Desktop.

Revisions

  1. Openpalm revised this gist Nov 13, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions broked
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,8 @@

    @for((s,urls) <- cloud) {

    upstream @s {
    @for(url <- urls) {
    upstream @s { <-- problem
    @for(url <- urls) {

    }
    }
  2. Openpalm created this gist Nov 13, 2018.
    19 changes: 19 additions & 0 deletions broked
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    @(cloud: Map[String, Seq[(String, String)]])


    @for((s,urls) <- cloud) {

    upstream @s {
    @for(url <- urls) {

    }
    }

    server {

    location / {
    proxy_pass http://@s/;
    }
    }

    }