app-config.production.yaml 1.38 KB
Newer Older
Addshore's avatar
Addshore committed
1
2
3
4
5
6
organization:
  name: Wikimedia

# Toolforge requires port 8000
# https://wikitech.wikimedia.org/wiki/Help:Toolforge/Web/Node.js

Addshore's avatar
Addshore committed
7
app:
Addshore's avatar
Addshore committed
8
  title: Wikimedia Backstage
Addshore's avatar
Addshore committed
9
  # Should be the same as backend.baseUrl when using the `app-backend` plugin
10
  baseUrl: https://backstage-api-catalog.toolforge.org
Addshore's avatar
Addshore committed
11
12

backend:
13
  baseUrl: https://backstage-api-catalog.toolforge.org
Addshore's avatar
Addshore committed
14
  listen:
Addshore's avatar
Addshore committed
15
16
17
18
19
20
    port: 8000
  csp:
    connect-src: ["'self'", 'http:', 'https:']
    # Content-Security-Policy directives follow the Helmet format: https://helmetjs.github.io/#reference
    # Default Helmet Content-Security-Policy values can be removed by setting the key to false
  cors:
21
    origin: https://backstage-api-catalog.toolforge.org
Addshore's avatar
Addshore committed
22
    methods: [GET, POST, PUT, DELETE]
Addshore's avatar
t    
Addshore committed
23
    credentials: true
24
25
26
27
28
29
  reading:
    allow:
      - host: stream.wikimedia.org
      - host: api.wikimedia.org
      - host: wikimedia.org
      - host: recommend.wmflabs.org
Addshore's avatar
t    
Addshore committed
30

31
32
33
34
integrations:
  gitlab:
    - host: gitlab.wikimedia.org
      apiBaseUrl: https://gitlab.wikimedia.org/api/v4
35
36
37
  github:
      - host: github.com
        token: ${GITHUB_TOKEN}
38

Addshore's avatar
t    
Addshore committed
39
40
41
42
43
catalog:
  rules:
    - allow: [Component, System, API, Group, User, Resource, Location]
  locations:
    - type: url
44
      target: https://gitlab.wikimedia.org/nikkin/backstage/-/blob/main/data/all.yaml
45
46
    - type: github-discovery
      target: https://github.com/wikimedia/mediawiki-services-*/blob/-/catalog-info.yaml