Skip to content

Commit 2c41a6f

Browse files
committed
🩹(frontend) rename Nginx config to override default configuration
Rename the configuration file to `default.conf` so it replaces the default config bundled in the Nginx image. Handles properly 404 path.
1 parent 6f38d60 commit 2c41a6f

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

docker/dinum-frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ COPY --from=addons-builder \
7979
/home/addons/outlook/dist \
8080
/usr/share/nginx/html/addons/outlook
8181

82-
COPY ./docker/dinum-frontend/nginx/dinum.conf /etc/nginx/conf.d
82+
COPY ./docker/dinum-frontend/nginx/default.conf /etc/nginx/conf.d
8383
COPY ./docker/files/usr/local/bin/entrypoint /usr/local/bin/entrypoint
8484

8585
ENTRYPOINT [ "/usr/local/bin/entrypoint" ]
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ server {
55

66
root /usr/share/nginx/html;
77

8-
include /etc/nginx/extra/*.conf;
9-
108
location = /.well-known/windows-app-web-link {
119
default_type application/json;
1210
alias /usr/share/nginx/html/.well-known/windows-app-web-link;
@@ -33,6 +31,7 @@ server {
3331

3432
location ~ ^/addons/outlook(/.*)?$ {
3533
alias /usr/share/nginx/html/addons/outlook$1;
34+
error_page 404 =200 /index.html;
3635
add_header Cache-Control "no-cache, no-store, must-revalidate";
3736
add_header Pragma "no-cache" always;
3837
add_header Expires 0 always;
@@ -53,7 +52,6 @@ server {
5352

5453
sub_filter 'NONCE_PLACEHOLDER' $nonce;
5554
sub_filter_once off;
56-
sub_filter_types text/html;
5755
}
5856

5957
# Serve static files with caching

0 commit comments

Comments
 (0)