You can easily override domain with simple nginx configuration,
full request uri to your old domain are forwarded to your new one.

1
2
3
4
5
6
server {
server_name old.domain.com;
return 301 https://new.domain.com$request_uri;

# ... other configs
}