--- title: How to use your own domain on Blueksy! date: 2024-11-18 --- In your Settings tab, scroll down to "Advanced" and click on "Change Handle" and then "I have my own domain." You'll be presented with two tabs that show you how to change your username to your domain via a DNS panel (where your domain is hosted) or without one. I chose the latter for speed. You have to upload a file at "YOUR_SITE/.well-known/atproto-did" containing some random string Bluesky gives you. Easy-peasy. I'm currently using nginx for my homepage so I had to add this to my nginx config: ``` server { location /.well-known/ { # Enable directory listing autoindex on; # Allow all methods allow all; # Set proper MIME type for atproto-did location /.well-known/atproto-did { default_type application/json; add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods "GET, OPTIONS"; add_header Access-Control-Allow-Headers "DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type"; } } } ``` Run `nginx -t` to ensure no issues occurred from this change and then `service nginx reload`. You should be good to go!