mem
This commit is contained in:
32
.serena/memories/deployment_ip_setup.md
Normal file
32
.serena/memories/deployment_ip_setup.md
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# Deployment Setup via IP Address
|
||||||
|
|
||||||
|
## Current Setup
|
||||||
|
- Domain: quixy.uk configured with Cloudflare proxy
|
||||||
|
- Problem: SSH connection via domain doesn't work (Cloudflare only proxies HTTP/HTTPS)
|
||||||
|
- Solution: Deploy directly via IP address
|
||||||
|
|
||||||
|
## Docker Compose Configuration
|
||||||
|
- Traefik currently configured with Host rule for domain
|
||||||
|
- Need to modify to accept connections by IP address
|
||||||
|
|
||||||
|
## Options to modify Traefik labels in docker-compose.yml:
|
||||||
|
|
||||||
|
### Option 1: Add IP to existing rule
|
||||||
|
```yaml
|
||||||
|
- "traefik.http.routers.quixotic.rule=Host(`${DOMAIN:-localhost}`) || Host(`[server_IP]`)"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Option 2: Remove host restriction completely
|
||||||
|
```yaml
|
||||||
|
- "traefik.http.routers.quixotic.rule=PathPrefix(`/`)"
|
||||||
|
```
|
||||||
|
|
||||||
|
## GitHub Actions / CI/CD
|
||||||
|
- User will configure GitHub deployment to use direct IP address
|
||||||
|
- SSH connection: `ssh user@[server_IP]`
|
||||||
|
- No domain dependency for deployment process
|
||||||
|
|
||||||
|
## Current Status
|
||||||
|
- Containers are running and healthy
|
||||||
|
- Need to update .env with DOMAIN=quixy.uk (but deployment will use IP)
|
||||||
|
- Website will be accessible via both domain (through Cloudflare) and direct IP
|
||||||
Reference in New Issue
Block a user