> For the complete documentation index, see [llms.txt](https://docs.taigo.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.taigo.xyz/installing/setting-up-your-domain.md).

# Setting up your Domain

⚠️ You need dpc.launcher.YOUR\_DOMAIN to link to your VPS and install the nginx web server on your VPS

Next, you need to issue an SSL certificate for the domain:&#x20;

```bash
sudo apt update
sudo apt install -y certbot
sudo apt install -y python3-certbot-nginx
certbot certonly --nginx -d dpc.launcher.YOUR_DOMAIN
```

Wait for the successful creation of an SSL certificate for your domain.

Go to the /etc/nginx/sites-enabled directory and create the **dpc.launcher.YOUR\_DOMAIN.conf** file

Put the following contents in the file by changing some parameters:

<pre><code>server {
    listen 80;
<strong>    server_name dpc.launcher.YOUR_DOMAIN;
</strong>    return 301 https://$server_name$request_uri;
}

server {
    listen 443 ssl http2;
    
<strong>    server_name dpc.launcher.YOUR_DOMAIN;
</strong><strong>    ssl_certificate /etc/letsencrypt/live/dpc.launcher.YOUR_DOMAIN/fullchain.pem;
</strong><strong>    ssl_certificate_key /etc/letsencrypt/live/dpc.launcher.YOUR_DOMAIN/privkey.pem;
</strong>    ssl_session_cache shared:SSL:10m;
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384";
    ssl_prefer_server_ciphers on;
  location / {
      proxy_set_header X-Real-IP $remote_addr;
<strong>      proxy_pass http://SERVER_IP:LAUNCHER_PORT/;
</strong>      proxy_buffering off;
  }
  
  location /resources/download/minecraft/net/ {
      proxy_set_header X-Real-IP $remote_addr;
      proxy_pass https://resources.download.minecraft.net/;
      proxy_buffering off;
  }

  location /files/minecraftforge/net/ {
      proxy_set_header X-Real-IP $remote_addr;
      proxy_pass https://files.minecraftforge.net/maven/;
      proxy_buffering off;
      proxy_set_header Host files.minecraftforge.net;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;
      proxy_ssl_server_name on;
      proxy_ssl_protocols TLSv1.3;
  }

  location /maven/minecraftforge/net/ {
      proxy_set_header X-Real-IP $remote_addr;
      proxy_pass https://maven.minecraftforge.net/;
      proxy_buffering off;
      proxy_set_header Host maven.minecraftforge.net;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;
      proxy_ssl_server_name on;
      proxy_ssl_protocols TLSv1.3;
  }

  location /files/minecraftforge/net/site/ {
      proxy_pass https://files.minecraftforge.net/;
      proxy_buffering off;
      proxy_set_header Host files.minecraftforge.net;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;
      proxy_ssl_server_name on;
      proxy_ssl_protocols TLSv1.3;
  }

  location /libraries/minecraft/net/ {
      proxy_set_header X-Real-IP $remote_addr;
      proxy_pass https://libraries.minecraft.net/;
      proxy_buffering off;
  }

  location /launchermeta/mojang/com/ {
      proxy_set_header X-Real-IP $remote_addr;
      proxy_pass https://launchermeta.mojang.com/;
      proxy_buffering off;
  }

}

</code></pre>

Replace the YOUR\_DOMAIN, SERVER\_IP, LAUNCHER\_PORT parameters with the necessary ones
