Skip to content

Commit

Permalink
correct hostname in nginx conf redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
oscgonfer committed Oct 23, 2024
1 parent 582db3d commit cb49588
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 @@ -28,9 +28,9 @@ server {
ssl_certificate /etc/ssl/star_smartcitizen_me.pem;
ssl_certificate_key /etc/ssl/star_smartcitizen_me.key;

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

server {
Expand Down

0 comments on commit cb49588

Please sign in to comment.