github.com/web-platform-tests/wpt.fyi@v0.0.0-20240530210107-70cf978996f1/webapp/web/app.yaml (about)

     1  # Copyright 2017 The WPT Dashboard Project. All rights reserved.
     2  # Use of this source code is governed by a BSD-style license that can be
     3  # found in the LICENSE file.
     4  
     5  runtime: go120
     6  instance_class: F4_1G
     7  
     8  inbound_services:
     9  - warmup
    10  
    11  default_expiration: "1d"
    12  
    13  vpc_access_connector:
    14    name: projects/wptdashboard/locations/us-central1/connectors/appengine-connector
    15  
    16  env_variables:
    17    REDISHOST: "10.171.142.203"
    18    REDISPORT: "6379"
    19  
    20  # Also refer to dispatch.yaml for higher-priority routing rules.
    21  handlers:
    22  # Special dynamic components:
    23  - url: /dynamic-components/wpt-env-flags.js
    24    script: auto
    25    secure: always
    26  - url: /node_modules/.*
    27    script: auto
    28    secure: always
    29  # Static files:
    30  - url: /static
    31    static_dir: webapp/static
    32    secure: always
    33  - url: /favicon.ico
    34    static_files: webapp/static/favicon.ico
    35    upload: webapp/static/favicon.ico
    36    secure: always
    37  - url: /robots.txt
    38    static_files: webapp/static/robots.txt
    39    upload: webapp/static/robots.txt
    40    secure: always
    41  # Static files that change often (i.e. our own code).
    42  - url: /components
    43    static_dir: webapp/components
    44    expiration: 10m
    45    secure: always
    46  - url: /views
    47    static_dir: webapp/views
    48    expiration: 10m
    49    secure: always
    50  
    51  
    52  # Everything else (templates & APIs):
    53  - url: /.*
    54    script: auto
    55    secure: always