Skip to content

Commit

Permalink
Merge pull request #255 from City-of-Helsinki/UHF-10314
Browse files Browse the repository at this point in the history
UHF-10314: Fixed authorization header
  • Loading branch information
tuutti authored Jul 15, 2024
2 parents 32ce2e4 + 76a4768 commit 9db86f8
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docker/elastic-proxy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ http {
sub {
use MIME::Base64;
if (exists($ENV{"ELASTIC_USER"}) && exists($ENV{"ELASTIC_PASSWORD"})) {
return encode_base64($ENV{"ELASTIC_USER"} . ":" . $ENV{"ELASTIC_PASSWORD"});
return encode_base64($ENV{"ELASTIC_USER"} . ":" . $ENV{"ELASTIC_PASSWORD"}, "");
}
return "";
}
Expand Down
24 changes: 14 additions & 10 deletions documentation/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Documentation

## Available modules

[Available modules](/documentation/modules.md)

## Automatic platform updates

[Automatic updates](/documentation/automatic-updates.md)

## Development and local environment

- [Local environment](/documentation/local.md)
Expand All @@ -14,20 +22,16 @@
- [Syncing databases between environments](/documentation/openshift-db-sync.md)
- [Building assets](/documentation/build-assets.md)
- [Queue service](/documentation/queue.md)
- [Search](/documentation/search.md)

## Testing

[Testing and CI](/documentation/testing.md)
[PHPstan](/documentation/phpstan.md)
## Projects

## Available modules
[List of all projects](/documentation/projects.md)

[Available modules](/documentation/modules.md)

## Projects
## Testing

[List of all projects](/documentation/projects.md)
[Testing and CI](/documentation/testing.md)
[PHPstan](/documentation/phpstan.md)

## Automatic platform updates

[Automatic updates](/documentation/automatic-updates.md)
2 changes: 1 addition & 1 deletion documentation/local.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Currently available profiles:

### Customizing docker-compose.yml

The default `docker-compose.yml` file is intended to be updated automatically from upstream and should have no customizations.
The default `compose.yaml` file is intended to be updated automatically from upstream and should have no customizations.

You can create a `docker-compose.override.yml` file to add or override existing features.

Expand Down
14 changes: 14 additions & 0 deletions documentation/search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Elasticsearch

See [ElasticSearch, React search apps and Proxys](https://helsinkisolutionoffice.atlassian.net/wiki/spaces/HEL/pages/8202256385/ElasticSearch+React+search+apps+and+Proxys) for more documentation about ElasticSearch.

The default Elastic proxy URL is `https://elastic-proxy-${COMPOSE_PROJECT_NAME}.docker.so`.

Local Elastic container and the proxy are configured in `compose.yaml` and the proxy's nginx configuration is found in `docker/elastic-proxy` folder.

Elastic security features are disabled on local by `xpack.security.enabled=false` environment variable defined in `compose.yaml`.

## Usage

- Add `ELASTIC_PROXY_URL=https://your-elastic-proxy-url` to `.env` file
- Make sure `COMPOSE_PROFILES` variable in `.env` contains `search`. See [Compose profiles](/documentation/local.md#compose-profiles) for more documentation.

0 comments on commit 9db86f8

Please sign in to comment.