File tree Expand file tree Collapse file tree 3 files changed +10
-22
lines changed
personalization-webcomponents Expand file tree Collapse file tree 3 files changed +10
-22
lines changed Original file line number Diff line number Diff line change 1
1
# For documentation see https://github.com/sclorg/nginx-container
2
2
FROM registry.access.redhat.com/ubi10/nginx-126:10.0-1747618876@sha256:d1866194c76ee988f6a0777292bbb7421f3bfc7637f43e41e8ad8512ae218cde
3
3
4
- # Copy built web components
4
+ # Copy built web components and SBOM result
5
5
COPY dist .
6
6
7
7
# Copy custom nginx configurations
8
- COPY docker/nginx/*.conf "${NGINX_DEFAULT_CONF_PATH}"
8
+ COPY docker/nginx/compression.conf "${NGINX_DEFAULT_CONF_PATH}"
9
+ COPY docker/nginx/files.conf "${NGINX_DEFAULT_CONF_PATH}"
10
+ COPY docker/nginx/health.conf "${NGINX_DEFAULT_CONF_PATH}"
11
+ COPY docker/nginx/sbom.conf "${NGINX_DEFAULT_CONF_PATH}"
9
12
10
13
# Start the web server
11
14
CMD ["nginx" , "-g" , "daemon off;" ]
Original file line number Diff line number Diff line change 1
1
location / {
2
- add_header 'Access-Control-Allow-Origin' $allow_origin ;
3
- add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
2
+ add_header 'Access-Control-Allow-Origin' $http_origin ;
3
+ add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
4
4
5
5
location /src/ {
6
6
expires 365d;
7
- add_header 'Access-Control-Allow-Origin' $allow_origin ;
8
- add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
7
+ add_header 'Access-Control-Allow-Origin' $http_origin ;
8
+ add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
9
9
add_header Cache-Control "public, no-transform";
10
10
}
11
11
12
12
location ~ ^/loader-.*\.js$ {
13
- add_header 'Access-Control-Allow-Origin' $allow_origin ;
13
+ add_header 'Access-Control-Allow-Origin' $http_origin ;
14
14
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS' always;
15
15
add_header Cache-Control 'no-cache';
16
16
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments