♻️ Simplify domains with api.example.com
for API and dashboard.example.com
for frontend, improve local development with localhost
(#1344)
This commit is contained in:

committed by
GitHub

parent
110a59c71d
commit
79d240f5b7
@@ -12,7 +12,7 @@ But you have to configure a couple things first. 🤓
|
||||
|
||||
* Have a remote server ready and available.
|
||||
* Configure the DNS records of your domain to point to the IP of the server you just created.
|
||||
* Configure a wildcard subdomain for your domain, so that you can have multiple subdomains for different services, e.g. `*.fastapi-project.example.com`. This will be useful for accessing different components, like `traefik.fastapi-project.example.com`, `adminer.fastapi-project.example.com`, etc. And also for `staging`, like `staging.fastapi-project.example.com`, `staging.adminer.fastapi-project.example.com`, etc.
|
||||
* Configure a wildcard subdomain for your domain, so that you can have multiple subdomains for different services, e.g. `*.fastapi-project.example.com`. This will be useful for accessing different components, like `dashboard.fastapi-project.example.com`, `api.fastapi-project.example.com`, `traefik.fastapi-project.example.com`, `adminer.fastapi-project.example.com`, etc. And also for `staging`, like `dashboard.staging.fastapi-project.example.com`, `adminer.staging..fastapi-project.example.com`, etc.
|
||||
* Install and configure [Docker](https://docs.docker.com/engine/install/) on the remote server (Docker Engine, not Docker Desktop).
|
||||
|
||||
## Public Traefik
|
||||
@@ -284,20 +284,20 @@ Traefik UI: `https://traefik.fastapi-project.example.com`
|
||||
|
||||
### Production
|
||||
|
||||
Frontend: `https://fastapi-project.example.com`
|
||||
Frontend: `https://dashboard.fastapi-project.example.com`
|
||||
|
||||
Backend API docs: `https://fastapi-project.example.com/docs`
|
||||
Backend API docs: `https://api.fastapi-project.example.com/docs`
|
||||
|
||||
Backend API base URL: `https://fastapi-project.example.com/api/`
|
||||
Backend API base URL: `https://api.fastapi-project.example.com`
|
||||
|
||||
Adminer: `https://adminer.fastapi-project.example.com`
|
||||
|
||||
### Staging
|
||||
|
||||
Frontend: `https://staging.fastapi-project.example.com`
|
||||
Frontend: `https://dashboard.staging.fastapi-project.example.com`
|
||||
|
||||
Backend API docs: `https://staging.fastapi-project.example.com/docs`
|
||||
Backend API docs: `https://api.staging.fastapi-project.example.com/docs`
|
||||
|
||||
Backend API base URL: `https://staging.fastapi-project.example.com/api/`
|
||||
Backend API base URL: `https://api.staging.fastapi-project.example.com`
|
||||
|
||||
Adminer: `https://adminer.staging.fastapi-project.example.com`
|
||||
|
Reference in New Issue
Block a user