Skip to content
Snippets Groups Projects
Commit 971eb39d authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

add aashto config

parent 57027d01
No related branches found
No related tags found
1 merge request!570Aashto swagger
...@@ -54,7 +54,7 @@ location @swagger-angular-fallback { ...@@ -54,7 +54,7 @@ location @swagger-angular-fallback {
EOF EOF
cat << EOF > "${NGINX_CONF_DIR}/02-server.conf" cat << EOF > "${NGINX_CONF_DIR}/02-server.conf"
location /ws/designmaps { location /ws/designmaps/aashto-2023 {
add_header 'X-Frame-Options' 'DENY'; add_header 'X-Frame-Options' 'DENY';
add_header 'X-Content-Type-Options' 'nosniff'; add_header 'X-Content-Type-Options' 'nosniff';
add_header 'Cache-Control' 'public'; add_header 'Cache-Control' 'public';
...@@ -65,15 +65,15 @@ location /ws/designmaps { ...@@ -65,15 +65,15 @@ location /ws/designmaps {
expires 5m; expires 5m;
# css/js are hash-stamped, and url will change if content changes # css/js are hash-stamped, and url will change if content changes
location ~* /ws/designmaps/(.*)\\.(css|js)\$ { location ~* /ws/designmaps/aashto-2023/(.*)\\.(css|js)\$ {
expires 1y; expires 1y;
try_files \$uri /ws/designmaps/previous/\$1.\$2; try_files \$uri /ws/designmaps/previous/\$1.\$2;
} }
try_files \$uri \$uri/ \$uri.html \$uri/index.html @designmaps-angular-fallback; try_files \$uri \$uri/ \$uri.html \$uri/index.html @aashto-angular-fallback;
} }
location @designmaps-angular-fallback { location @aashto-angular-fallback {
rewrite ^(.*)\$ /ws/designmaps/index.html last; rewrite ^(.*)\$ /ws/designmaps/aashto-2023/index.html last;
} }
EOF EOF
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment