github.com/symfony-cli/symfony-cli@v0.0.0-20240514161054-ece2df437dfa/commands/testdata/project/.upsun/config.yaml (about) 1 routes: 2 "https://{all}/": { type: upstream, upstream: "slug:http" } 3 "http://{all}/": { type: redirect, to: "https://{all}/" } 4 5 services: 6 foo: 7 type: bar:baz 8 9 foo1: 10 type: bar1:baz1 11 12 foo2: 13 type: postgresql:baz2 14 15 16 17 applications: 18 slug: 19 source: 20 root: "/" 21 22 type: php:8.0 23 24 runtime: 25 extensions: 26 - apcu 27 - blackfire 28 - ctype 29 - iconv 30 - mbstring 31 - pdo_pgsql 32 - sodium 33 - xsl 34 35 36 variables: 37 php: 38 opcache.preload: config/preload.php 39 build: 40 flavor: none 41 42 web: 43 locations: 44 "/": 45 root: "public" 46 expires: 1h 47 passthru: "/index.php" 48 49 mounts: 50 "/var": { source: storage, source_path: var } 51 52 53 relationships: 54 foo: "foo:bar" 55 foo1: "foo1:bar1" 56 foo2: "foo2:postgresql" 57 58 hooks: 59 build: | 60 set -x -e 61 62 curl -fs https://get.symfony.com/cloud/configurator | bash 63 64 NODE_VERSION=18 symfony-build 65 66 deploy: | 67 set -x -e 68 69 symfony-deploy 70 71 crons: 72 security-check: 73 # Check that no security issues have been found for PHP packages deployed in production 74 # See https://github.com/fabpot/local-php-security-checker 75 spec: '50 23 * * *' 76 cmd: if [ "$PLATFORM_ENVIRONMENT_TYPE" = "production" ]; then croncape php-security-checker; fi 77 78