Skip to content

Commit

Permalink
fix nginx redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
timcowlishaw committed Oct 20, 2024
1 parent 4d3009e commit d7607dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/nginx-conf/api.smartcitizen.me.conf
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ server {
ssl_certificate /etc/ssl/star_smartcitizen_me.pem;
ssl_certificate_key /etc/ssl/star_smartcitizen_me.key;

rewrite ^/users/(.*)$ https://staging-api.smartcitizen.com/ui/users/$1 permanent;
rewrite ^/sessions/(.*)$ https://staging-api.smartcitizen.com/ui/sessions/$1 permanent;
rewrite ^/(.*)$ https://staging-api.smartcitizen.com/$1 permanent;
rewrite ^/users/(.*)$ https://staging-api.smartcitizen.me/ui/users/$1 permanent;
rewrite ^/sessions/(.*)$ https://staging-api.smartcitizen.me/ui/sessions/$1 permanent;
rewrite ^/(.*)$ https://staging-api.smartcitizen.me/$1 permanent;
}

server {
Expand Down

0 comments on commit d7607dd

Please sign in to comment.