Skip to content

Commit

Permalink
Split publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
jkfran committed Jan 6, 2022
1 parent 25b2d8d commit 7bface2
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions konf/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,36 @@ production:
more_set_headers "Link: <https://assets.ubuntu.com>; rel=preconnect; crossorigin, <https://assets.ubuntu.com>; rel=preconnect, <https://res.cloudinary.com>; rel=preconnect, <https://dashboard.snapcraft.io>; rel=preconnect";
routes:
- paths: [
/account,
/admin,
/login,
/login-beta,
/logout,
/github,
/snaps,
'/[^/]*/listing',
'/[^/]*/publicise',
'/[^/]*/releases',
'/[^/]*/settings',
'/[^/]*/builds',
'/[^/]*/webhook',
'/[^/]*/[^/]*/webhook',
'/[^/]*/preview',
'/[^/]*/metrics',
'/[^/]*/release',
/register-snap,
/register-name-dispute,
/request-reserved-name,
/snap-builds.json
]
name: snapcraft-io-publisher
app_name: snapcraft.io-publisher
image: prod-comms.docker-registry.canonical.com/snapcraft.io
replicas: 5
memoryLimit: 256Mi
env: *env

- paths: [/docs, /tutorials]
name: snapcraft-io-discourse
app_name: snapcraft.io-discourse
Expand Down Expand Up @@ -127,6 +157,36 @@ staging:
more_set_headers "Link: <https://assets.ubuntu.com>; rel=preconnect; crossorigin, <https://assets.ubuntu.com>; rel=preconnect, <https://res.cloudinary.com>; rel=preconnect, <https://dashboard.snapcraft.io>; rel=preconnect";
routes:
- paths: [
/account,
/admin,
/login,
/login-beta,
/logout,
/github,
/snaps,
'/[^/]*/listing',
'/[^/]*/publicise',
'/[^/]*/releases',
'/[^/]*/settings',
'/[^/]*/builds',
'/[^/]*/webhook',
'/[^/]*/[^/]*/webhook',
'/[^/]*/preview',
'/[^/]*/metrics',
'/[^/]*/release',
/register-snap,
/register-name-dispute,
/request-reserved-name,
/snap-builds.json
]
name: snapcraft-io-publisher
app_name: snapcraft.io-publisher
image: prod-comms.docker-registry.canonical.com/snapcraft.io
replicas: 3
memoryLimit: 256Mi
env: *env

- paths: [/docs, /tutorials]
name: snapcraft-io-discourse
app_name: snapcraft.io-discourse
Expand Down

0 comments on commit 7bface2

Please sign in to comment.