# Custom domain on Keenetic router

> Инструкция работает если у вас есть белый статичный ip-адрес и свой домен

Check settings:
* `Domain name` must Enabled `Remote web interface connections`

### Setup certificate for domain

* Connect to CLI as `<router_ip>/a`
* Check existing domains:
  ```bash
  ip http ssl acme list
  ```
* Add your domain name:
  ```bash
  ip http ssl acme get <subdomain>.annndruha.space
  ```

### Setup proxy for subdomain
* Check current proxy rules
  ```bash
  show ip http proxy
  ```
* Add new proxy route

  (config)>
  ```bash
  ip http proxy <subdomain>
  ```
  (config-http-proxy)>
  ```bash
  domain static annndruha.space
  upstream http 192.168.1.3 4242
  allow public
  ```