Skip to content

Commit

Permalink
Merge branch 'main' of github.com:dfpc-coe/CloudTAK into 3d-terrain
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 2, 2024
2 parents 959fd1b + 6bd635d commit ea7b94b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

### Pending Release

### v4.4.2 - 2024-10-02

- :rocket: `API` Start to make improvements to caching behavior on initial load

### v4.4.1 - 2024-10-01

- :bug: `API` Set `useCache=true` when making Group List calls
Expand Down
19 changes: 16 additions & 3 deletions api/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,29 @@ http {
set $CONNECT "connect-src 'self' *.API_URL:* *.ROOT_URL:*";
add_header 'Content-Security-Policy' "default-src 'self' *.API_URL; ${IMG}; ${WORKER}; ${CONNECT}; ${STYLE_SRC_ATTR}; ${STYLE_SRC_ELEM}; ${FONT}; upgrade-insecure-requests;" always;

location = / {
add_header 'X-Content-Type-Options' 'nosniff' always;
add_header 'X-Frame-Options' 'DENY' always;
add_header 'Referrer-Policy' 'strict-origin-when-cross-origin' always;
add_header 'Strict-Transport-Security' 'max-age=31536000; includeSubDomains; preload' always;
add_header 'Permissions-Policy' 'fullscreen=(self), geolocation=(self), clipboard-read=(self), clipboard-write=(self)' always;
add_header 'Content-Security-Policy' "default-src 'self' *.API_URL; ${IMG}; ${WORKER}; ${CONNECT}; ${STYLE_SRC_ATTR}; ${STYLE_SRC_ELEM}; ${FONT}; upgrade-insecure-requests;" always;

add_header 'Cache-Control' 'no-store, no-cache, must-revalidate' always;
add_header 'Expires' 0 always;
add_header 'Pragma' 'no-cache' always;

alias /home/etl/api/web/dist/;
try_files /index.html =404;
}

location / {
if ($request_uri ~ ^/(.*)\.html) {
return 302 /$1;
}

alias /home/etl/api/web/dist/;

try_files $uri $uri.html $uri/ /index.html;

autoindex on;
}

location /docs/ {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tak-ps/CloudTAK",
"type": "module",
"version": "4.4.1",
"version": "4.4.2",
"description": "Facilitate ETL operations to bring non-TAK sources into a TAK Server",
"scripts": {
"lint": "eslint cloudformation/**/*.js",
Expand Down

0 comments on commit ea7b94b

Please sign in to comment.