> For the complete documentation index, see [llms.txt](https://kb.criticalscripts.shop/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.criticalscripts.shop/paid-resources/fivem-stories/external-hosting-server.md).

# External Hosting Server

{% hint style="warning" %}
This is intended only for experienced developers.
{% endhint %}

If you choose not to use the integrated hosting server you can self-host an external hosting server.\
To do so, follow the instructions below.

{% stepper %}
{% step %}

### Download

Download the external proxy server through our [GitHub](https://github.com/criticalscripts-shop/cs-stories-ehs).
{% endstep %}

{% step %}

### Install

Run `npm install` in the EHS[^1] directory and wait until it completes.
{% endstep %}

{% step %}

### Configure

Read through all options and their comments inside its `config.js` file as they are very important for the setup process, adjust them to your setup and preferences.
{% endstep %}

{% step %}

### Run

Run `node server.js` in the EHS[^1] directory and **do not close the console window**.

{% hint style="info" %}
You can use [pm2](https://pm2.keymetrics.io/docs/usage/quick-start/) to make sure the EHS[^1] runs all the time.
{% endhint %}
{% endstep %}
{% endstepper %}

[^1]: External Hosting Server
