mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-28 19:27:50 +00:00
🩹(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.
This commit is contained in:
committed by
aleb_the_flash
parent
6f38d60a27
commit
3d125e940f
@@ -79,7 +79,7 @@ COPY --from=addons-builder \
|
|||||||
/home/addons/outlook/dist \
|
/home/addons/outlook/dist \
|
||||||
/usr/share/nginx/html/addons/outlook
|
/usr/share/nginx/html/addons/outlook
|
||||||
|
|
||||||
COPY ./docker/dinum-frontend/nginx/dinum.conf /etc/nginx/conf.d
|
COPY ./docker/dinum-frontend/nginx/default.conf /etc/nginx/conf.d
|
||||||
COPY ./docker/files/usr/local/bin/entrypoint /usr/local/bin/entrypoint
|
COPY ./docker/files/usr/local/bin/entrypoint /usr/local/bin/entrypoint
|
||||||
|
|
||||||
ENTRYPOINT [ "/usr/local/bin/entrypoint" ]
|
ENTRYPOINT [ "/usr/local/bin/entrypoint" ]
|
||||||
|
|||||||
@@ -5,8 +5,6 @@ server {
|
|||||||
|
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
|
||||||
include /etc/nginx/extra/*.conf;
|
|
||||||
|
|
||||||
location = /.well-known/windows-app-web-link {
|
location = /.well-known/windows-app-web-link {
|
||||||
default_type application/json;
|
default_type application/json;
|
||||||
alias /usr/share/nginx/html/.well-known/windows-app-web-link;
|
alias /usr/share/nginx/html/.well-known/windows-app-web-link;
|
||||||
@@ -33,6 +31,7 @@ server {
|
|||||||
|
|
||||||
location ~ ^/addons/outlook(/.*)?$ {
|
location ~ ^/addons/outlook(/.*)?$ {
|
||||||
alias /usr/share/nginx/html/addons/outlook$1;
|
alias /usr/share/nginx/html/addons/outlook$1;
|
||||||
|
error_page 404 =200 /index.html;
|
||||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||||
add_header Pragma "no-cache" always;
|
add_header Pragma "no-cache" always;
|
||||||
add_header Expires 0 always;
|
add_header Expires 0 always;
|
||||||
@@ -53,7 +52,6 @@ server {
|
|||||||
|
|
||||||
sub_filter 'NONCE_PLACEHOLDER' $nonce;
|
sub_filter 'NONCE_PLACEHOLDER' $nonce;
|
||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
sub_filter_types text/html;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Serve static files with caching
|
# Serve static files with caching
|
||||||
Reference in New Issue
Block a user