seitime-frappe/frappe/docs/user/es/bench/guides/adding-custom-domains.md
Narciso E. Núñez Arias 923990872b [docs] Translation of the Guides And Resources section in bench to Spanish (#3747)
* Add basic files structure for spanish translation of the doc

* Translate the video tutorial index page

* Translate Before Start page

* Translate What is an app page

* Translate the Bench page

* Translate Conslusion page of the tutorial

* Translate to spanish Tutorial Index page

* Translate to spanish Reports page

* Translate to Spanish Roles Page

* Translate to Spanish the Tutorial Model Page

* Translate to Spanish the tutorial Single Doctypes page

* Translate to Spanish the tutorial Doctype files structure page

* Translate to Spanish the tutorial Start Bench page

* Translate to Spanish the tutorial New App page

* Translate to Spanish the tutorial Client Side Script page

* Translate to Spanish the tutorial Users and records page

* Translate to Spanish the tutorial Setting Up the site page

* Translate to Spanish the tutorial Task Runner page

* Translate to Spanish the tutorial Controllers Page

* Translate to Spanish the tutorial Doctypes page

* Translate to Spanish the tutorial Naming And Linking page

* Translate to Spanish the tutorial Web Views page

* Add basic file structure to translate the bench section of the tutorial

* [docs] Translate to Spanish the tutorial Adding custom domain page

* [docs] Translate to Spanish the tutorial Configuring HTTPS page

* [docs] Translate to Spanish the tutorial Diagnosing the Scheduler page

* [docs] Translate to Spanish the tutorial Settings Site Limits\ page

* [docs] Translate to Spanish the tutorial Setup Production page

* [docs] Translate to Spanish the tutorial Bench ProcFile page

* [docs] Translate to Spanish the tutorial Manual Setup page

* [docs] Translate to Spanish the tutorial Background Services page

* [docs] Translate to Spanish the tutorial Lets Encrypt Setup page

* [docs] Translate to Spanish the tutorial Setup Multitenancy page

* [docs] Translate to Spanish the tutorial Bench Commands page
2017-07-20 10:28:15 +05:30

1.1 KiB

Agregando dominios personalizados a su Site

Puedes agregar multiples dominios personalizados para un site, ejecutando el comando:

bench setup add-domain [dominio]

Al ejecutar el comando debes especificar para cual site quieres establecer el dominio personalizado.

También, puedes configurar el SSL para su dominio personalizado usando las opciones:

--ssl-certificate [ruta-al-certificado]
--ssl-certificate-key [ruta-a-la--clave-certificado]

Ejemplo:

bench setup add-domain custom.erpnext.com --ssl-certificate /etc/letsencrypt/live/erpnext.cert --ssl-certificate-key /etc/letsencrypt/live/erpnext.key

La configuración el dominio es almacenada en las configuraciones del site en su archivo site_config.json

 "domains": [
  {
   "ssl_certificate": "/etc/letsencrypt/live/erpnext.cert",
   "domain": "erpnext.com",
   "ssl_certificate_key": "/etc/letsencrypt/live/erpnext.key"
  }
 ],

Luego debes regenerar las configuraciones de nginx ejecutando el comando bench setup nginx y reiniciando el servicio de nginx para que los cambios de los dominios tomen efecto