My agenda is to install Nginx extras by which I can leverage HTTP headers.
This is a small give-back to this community :
1- First create your Nginx DockerFile and build your machine :
FROM nginx:1.21
RUN apt-get update -y
RUN apt-get install -y nginx-common
RUN apt-get install -y libnginx-mod-http-headers-more-filter
2- Build your machine :
docker build -t 'nginx_extras_1' .
3- When the machine is built successfly, edit the file nginx.conf located in
/KOBO_PATH/kobo-docker/nginx/kobo-docker-scripts/nginx.conf
4- Add the following lines :
load_module modules/ngx_http_headers_more_filter_module.so;
http {
#more_clear_headers 'Server';
more_set_headers 'Server: random_server_name';
}
5- Now edit the file docker-compose.frontend.override.yml
and change Nginx image name with your new image :
nginx:
image: nginx_extras_1:latest
6- Now you can start KoboToolbox :
python3 run.py
1 Like