You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,16 +44,16 @@ Copy your SPA resources to `/app/`. All resources in this directory will be serv
44
44
45
45
### YAML Configuration
46
46
47
-
The container is configured using YAML files.
47
+
The application container is configured via YAML files at startup time.
48
48
49
-
You can mount your custom configuration file at `/config/config.yaml`. Every specified option in this file will override the default configuration.
49
+
If you need to configure some default settings for your application image, you can add a default configuration file to `/config/default.yaml`.
50
+
51
+
To configure settings at runtime, you can mount your runtime configuration file at `/config/config.yaml`. Every specified setting in this file will override the default setting.
50
52
51
53
It is also possible to merge multiple configuration files by specifying the `CONFIG_FILES` environment variable like `CONFIG_FILES="file:///config/config1.yaml|file:///config/config2.yaml"`. The configuration options, specified in the first configuration file in that variable, will have priority over the options in later declared files.
52
54
53
-
The following configuration shows the default values for every available option:
55
+
The following configuration shows the default values of this base image for every available setting:
54
56
```yaml
55
-
# Do not edit or replace this file!
56
-
# Instead create a second config file, which overrides these defaults.
57
57
default:
58
58
# Specifies to which host names this configuration should apply.
59
59
server_names:
@@ -114,7 +114,7 @@ default:
114
114
style-src: "'self'"
115
115
```
116
116
117
-
Aside to the `default` configuration block, you can also define other blocks, which might define configuration options for special hosts. The non-default blocks will inherit the configured options of the default-block if they are not explicitly redeclared.
117
+
Aside to the `default` configuration block, you can also define other blocks, which might define configuration settings for special hosts. The non-default blocks will inherit the configured settings of the default-block if they are not explicitly redeclared.
Copy file name to clipboardExpand all lines: examples/angular-example/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ This is a small Angular example app, which includes a `spa_config.js` to configu
8
8
2. Add `"src/spa_config.js"` to `.projects["your-project"].architect.build.options.assets` in `angular.json`
9
9
3. Declare `spaConfig` in the `window` object via the TypeScript definition file `/src/@types/spa_config.d.ts`
10
10
4. Add `<script src="./spa_config.js"></script>` to `index.html`
11
+
5. Add a `/config/default.yaml` configuration file to the image, which allows 'unsafe-inline' styles. (See `default-config.yaml`, [#angular/26152](https://github.com/angular/angular/issues/26152))
0 commit comments