Skip to content

Commit

Permalink
Merge pull request #142 from stakater/landing-fixes
Browse files Browse the repository at this point in the history
Landing page fixes
  • Loading branch information
SheryarButt authored Apr 28, 2024
2 parents 0027b3d + c6f7d6b commit 107ff4f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN python theme_common/scripts/combine_mkdocs_config_yaml.py theme_common/mkdoc
RUN mkdocs build

FROM nginxinc/nginx-unprivileged:1.26-alpine as deploy
COPY --from=builder $HOME/application/site/ /usr/share/nginx/html/landing/
COPY --from=builder $HOME/application/site/ /usr/share/nginx/html/
COPY default.conf /etc/nginx/conf.d/

# set non-root user
Expand Down
18 changes: 18 additions & 0 deletions default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ server {
location = /404.html {
internal;
}
location ~* ^/content/sre/multi-tenant-operator(/(.*))?$ {
return 301 $scheme://docs.stakater.com/mto/$2;
}
location ~* ^/content/sre/tronador(/(.*))?$ {
return 301 $scheme://docs.stakater.com/tronador/$2;
}
location ~* ^/content/sre/secrets-management(/(.*))?$ {
return 301 $scheme://docs.stakater.com/secrets/$2;
}
location ~* ^/content/openshift-as-a-service(/(.*))?$ {
return 301 $scheme://docs.stakater.com/oaas/$2;
}
location = /content/sre/support/support.html {
return 301 $scheme://docs.stakater.com/saap/help/support/support.html;
}
location ~* ^/content(/.*)?$ {
return 301 $scheme://docs.stakater.com/saap/;
}
# redirects issued by nginx will be relative
absolute_redirect off;
}

0 comments on commit 107ff4f

Please sign in to comment.