|
2 | 2 | title: "Introduction"
|
3 | 3 | description: "A guide to help you understand what kind of servers you can connect to Coolify."
|
4 | 4 | ---
|
5 |
| - |
6 | 5 | # Introduction
|
7 |
| - |
8 | 6 | No matter what type of server you have (localhost or remote), you need the following requirements.
|
9 |
| - |
10 | 7 | - Connectivity
|
11 |
| - |
12 | 8 | - SSH connectivity between Coolify and the server with SSH key authentication.
|
13 | 9 | ::: success Tip
|
14 | 10 | Your public key should be added to **root** user's `~/.ssh/authorized_keys`.
|
15 |
| - If you do not have an SSH Key, you can generate on through Coolify with a simple button or you can generate one manually. |
| 11 | + If you do not have an SSH Key, you can generate one through Coolify with a simple button or you can generate one manually. |
16 | 12 | :::
|
17 |
| - |
18 |
| - |
19 | 13 | - Docker Engine (24+)
|
20 |
| - |
21 | 14 | ## Types
|
22 |
| - |
23 | 15 | - **Localhost**: the server where Coolify is installed.
|
24 | 16 | - **Remote Server**: could be any remote linux server.
|
25 |
| - |
26 | 17 | ## Localhost
|
27 |
| - |
28 | 18 | To be able to manage the server where Coolify is running on, the docker container of Coolify should reach the host server through SSH.
|
29 |
| - |
30 | 19 | You can use localhost as a server where all your resources are running, but it is not recommended as high server usage could prevent to use Coolify.
|
31 |
| - |
32 | 20 | ::: success Tip
|
33 | 21 | You can use our [Cloud](https://app.coolify.io) version, so you only need a server for your resources.
|
34 | 22 |
|
35 | 23 | You will get a few other things included with the cloud version, like free email notifications, s3 storage, etc based on your subscription plan.
|
36 | 24 | :::
|
37 |
| - |
38 | 25 | ## Remote Server
|
39 |
| - |
40 | 26 | You can connect any type of servers to Coolify. It could be a VPS, a Raspberry PI or a laptop running Linux.
|
41 |
| - |
42 | 27 | ::: success Tip
|
43 | 28 | If you don't have a server or server provider yet, we prefer to use Hetzner.
|
44 |
| - |
45 | 29 | You can use our [referral link](https://coolify.io/hetzner). It will help us to keep the project alive.
|
46 |
| - |
47 | 30 | :::
|
48 |
| - |
49 | 31 | ### Cloudflare Tunnels
|
50 |
| - |
51 | 32 | You can also set to use Cloudflare Tunnels for your servers.
|
52 |
| - |
53 | 33 | ::: success Tip
|
54 | 34 | Coolify does not install cloudflared on your server, it needs to be done prior.
|
55 |
| - |
56 | 35 | All it does is to add the right ProxyCommand (`ProxyCommand <ip / hostname> access ssh --hostname %h`) to all ssh connections.
|
57 |
| - |
58 | 36 | :::
|
59 | 37 |
|
60 |
| -## Features |
| 38 | +## Multiple Server Configuration |
| 39 | +When setting up multiple servers in Coolify, it's important to understand how traffic routing works: |
61 | 40 |
|
62 |
| -### Disk Cleanup threshold |
| 41 | +- **Independent Proxy Handling**: Each server runs its own proxy that handles incoming requests for applications deployed on that server. |
| 42 | +- **Direct Traffic Flow**: Traffic for applications deployed on secondary servers goes directly to those servers, not through the main Coolify server. |
| 43 | +- **DNS Configuration**: You must point your domain DNS to the IP address of the server where the application is deployed, not to the main Coolify server. |
63 | 44 |
|
64 |
| -You can read more about Automated Cleanup and the disk cleanup threshold in the [Automated Cleanup](/knowledge-base/server/automated-cleanup) section. |
| 45 | +### Role of the Main Server |
| 46 | +The main Coolify server: |
| 47 | +- Provides the management UI to control applications on all connected servers |
| 48 | +- Performs SSH connections to secondary servers for deployment and management |
| 49 | +- Conducts health checks and monitoring |
| 50 | +- Does NOT route or proxy traffic to applications on secondary servers |
65 | 51 |
|
66 |
| -### Wildcard Domain |
| 52 | +This architecture reduces latency and improves application performance by eliminating additional network hops. |
67 | 53 |
|
| 54 | +## Features |
| 55 | +### Disk Cleanup threshold |
| 56 | +You can read more about Automated Cleanup and the disk cleanup threshold in the [Automated Cleanup](/knowledge-base/server/automated-cleanup) section. |
| 57 | +### Wildcard Domain |
68 | 58 | You can set a wildcard domain (`example: http://example.com`) to your server, so you can easily assign generated domains to all the resources connected to this server.
|
69 |
| - |
70 | 59 | Example: Your application UUID is `vgsco4o`.
|
71 |
| - |
72 | 60 | If you have the example set, you will get the following FQDN: `http://vgsco4o.example.com`
|
73 |
| - |
74 | 61 | If you do not have any wildcard domain set, Coolify will generate a [sslip.io](https://sslip.io) domain, which is free & magical domain that you can use anywhere.
|
75 |
| - |
76 | 62 | In this case, it will be: `http://vgsco4o.127.0.0.1.sslip.io`, where `127.0.0.1` is your server's IP.
|
77 | 63 |
|
78 |
| -## Proxy |
| 64 | +::: success Tip |
| 65 | +When using multiple servers, remember that each application's domain must point to the specific server where that application is deployed. |
| 66 | +::: |
79 | 67 |
|
| 68 | +## Proxy |
80 | 69 | - **Traefik**: Automatically configure Traefik(v2) based on your deployed resources.
|
81 | 70 | - **Custom/None**: You will configure a proxy manually (only for advanced users).
|
82 |
| - |
83 | 71 | ::: success Tip
|
84 | 72 | Soon we will support Nginx & Caddy with fully automated configuration.
|
85 | 73 | :::
|
86 |
| - |
87 | 74 | ### Traefik
|
88 |
| - |
89 | 75 | Coolify uses Traefik proxy by default to create a reverse proxy for your resources.
|
90 |
| - |
91 | 76 | ::: success Tip
|
92 | 77 | Traefik only starts when you did not select any proxy for your server and you
|
93 | 78 | have a domain configured for a resource or your Coolify instance itself.
|
94 | 79 | :::
|
95 |
| - |
96 | 80 | #### Dynamic Configuration
|
97 |
| - |
98 |
| -You can always add your own configuration to the proxy settings from Coolify's UI (`/server/<server_uuid>/proxy`). |
| 81 | +You can always add your own configuration to the proxy settings from Coolify's UI (`/server/<server_uuid>/proxy`). |
0 commit comments