-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'GitHub/main'
# Conflicts: # cytomine.template
- Loading branch information
Showing
3 changed files
with
82 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Configuration overrides folder | ||
For each service, you can override any file within the container. | ||
## File override | ||
Under this `configs/` folder, just recreate the folder structure of the file from the root filesystem path and place a file there. | ||
Example: override the `/etc/nginx/cors_params` of the `nginx` service. | ||
``` | ||
configs | ||
└─ nginx <-- service name | ||
└─ etc <-- /etc inside the container | ||
└─ nginx | ||
└─ cors_params <-- file | ||
``` | ||
|
||
## File templating | ||
Additionally, environment variables can be interpolated inside those files if they end with `.sample`. | ||
For instance, `/etc/nginx/nginx.conf.sample` of the `nginx` service | ||
```conf | ||
... | ||
server { | ||
client_max_body_size 0; | ||
listen 80; | ||
server_name $URLS_CORE; | ||
... | ||
``` | ||
Will become `/etc/nginx/nginx.conf` with `$URLS_CORE` replaced by `cytomine.local` | ||
```conf | ||
... | ||
server { | ||
client_max_body_size 0; | ||
listen 80; | ||
server_name cytomine.local | ||
... | ||
``` | ||
# List of services and overrides examples | ||
Here is a list of what can be defined in the `configs/` folder. | ||
## core | ||
Example: | ||
``` | ||
configs | ||
└─ core <-- service name | ||
└─ app <-- /app inside the container | ||
└─ logback.xml <-- file | ||
``` | ||
See here what can be overridden https://github.com/cytomine/Cytomine-core-spring/blob/main/README.md#override-configuration | ||
|
||
## nginx | ||
Example: | ||
``` | ||
configs | ||
└─ nginx <-- service name | ||
└─ etc <-- /etc inside the container | ||
└─ nginx | ||
└─ cors_params <-- file | ||
``` | ||
See here what can be overridden https://github.com/cytomine/Cytomine-nginx/tree/main/cm_configs_default | ||
|
||
## pims | ||
Example: | ||
``` | ||
configs | ||
└─ pims <-- service name | ||
└─ app <-- /app inside the container | ||
└─ logging.xml <-- file | ||
``` | ||
See here what can be overridden https://github.com/cytomine/pims | ||
|
||
## web_ui | ||
Example: | ||
``` | ||
configs | ||
└─ web_ui <-- service name | ||
└─ app <-- /app inside the container | ||
└─ configuration.json.sample <-- file | ||
``` | ||
See here what can be overridden https://github.com/cytomine/Cytomine-Web-UI |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters