Skip to main content
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog

Loading…

Servers Are Up

Your apps, automation and data on hardware we own. Build a private stack with predictable capacity and access through your dashboard, API or SSH.

SLA with service creditsOwned hardwareUS-based

Make room for your next idea

Explore the capacity, apps and access options that fit your workload. Check current availability and your total before you buy.

Sign up freeView Pricing

Products

  • Linux VPS
  • Windows VPS
  • Cloud & SaaS Services
  • Cloud Storage (Azure)
  • Virtual Datacenter
  • AI & Agent Hosting
  • Containers
  • Instant Apps
  • Software Platforms
  • Network builder
  • Game Servers
  • Free Game Servers
  • Pricing

Resources

  • Free Network Tools
  • 2026 Pricing Benchmark
  • Live SVG Badges
  • Latency & Speed Test
  • Guides & Tutorials
  • Documentation
  • API Reference
  • MCP Server
  • CLI & SDKs
  • OpenAPI & llms.txt
  • Use Cases
  • Free Migration
  • Uptime & Reliability
  • Datacenter
  • System Status
  • Network
  • Provider Comparisons Hub
  • Compare Providers

Company

  • About Us
  • Enterprise
  • Security Architecture
  • Trust Center
  • Blog
  • FAQ
  • Compliance
  • Startup Program
  • Open-Source Sponsorship
  • Press & Media Kit
  • Referral Program
  • Help Center
  • Contact Us
© Servers Are Up
TermsPrivacySLARefund PolicyDPAAcceptable Use
Service information
Docs
  • Documentation Hub
  • Technical Knowledge Library
    Runbooks & 187 Blueprints
  • Choose a Product
    VMs, Containers & Cloud
  • First Linux Server
    SSH, Firewall & Apps
  • Windows Server 2025
    BYOL & Remote Desktop
  • Remote Access
  • Troubleshooting
  • FAQ
  • All Product Guides
    29 Step-by-Step Guides
  • Cloud & SaaS Catalog
    112 Cloud & SaaS Offerings
  • Azure Cloud Storage
    Hot/Cool/Archive & WORM
  • Resource Manager & RBAC
    Groups, Tags & Locks
  • Multi-Model Cloud DB
    JSONB, SQL & pgvector
  • Cloud Identity & ZTNA
    OIDC, SCIM & PIM
  • Key Vault & KMS
    Secrets & Envelope Keys
  • Cloud SIEM, SOAR & DLP
    Posture & Threat Response
  • API Gateway & Cloud DNS
    Edge WAF & DNS Zones
  • Serverless, Workflows & IoT
    Functions, Queues & DAGs
  • SaaS, Governance & Vault
    Budgets & Off-Host GRS
  • Linux Systems & Kernel
    SSH, UFW, sysctl & OOM
  • Self-Hosted Apps & Stacks
    Caddy, Nextcloud & Auth
  • Build Web Apps with AI
  • Next.js and React
  • TypeScript and Node.js
  • npm and Tooling
  • Data and APIs
  • Deploy and Operate
  • Tutorials
  • Infrastructure
  • Automation & Regions
  • API Overview
  • API v1 Reference
    Endpoints & 23 Scopes
  • MCP Server
    129 AI Agent Tools
  • Swagger / OpenAPI 3.1
  • API Playground
  • Versioning & Sunset
  • API Token Security
    Authentication & Tokens
  • Instances API
    Compute Resources
  • Networking API
    Networks & Ports
  • Storage API Availability
    Volumes & Backups
  • Webhooks & Events
    Event Notifications
  • Rate Limits & Best Practices
    Throttling & Retries
  • sau CLI Reference
    34 Commands (v0.2)
  • Browser Web CLI
  • SDKs
  • Infrastructure as Code
    Terraform & Ansible
  • Code Examples
  • CLI & SDK Guides
  • Security Guides
  • Security at a Glance
  • Zero Trust Architecture
  • Live Trust Center
  • Compliance
Need help?

Loading documentation...

Documentation/self hosted apps

Wire Authentik, Gitea, and n8n cleanly behind a proxy

Configure Authentik trusted proxy CIDRs and OIDC SSO, Gitea ROOT_URL and Git SSH passthrough, and n8n WEBHOOK_URL with PostgreSQL backing in Docker.

Intermediate
30 min
Updated 2026-11-23

Deploy Ready-to-Run Infrastructure in Seconds

Linux VMs from $6/mo · Pooled Virtual Datacenters from $12/mo · Use code WELCOME20 for 20% off your first order.

Browse ServersView Pricing

Commands checked on 2026-11-23 with Authentik 2024.10+, Gitea 1.22+, n8n 1.70+, Caddy 2.9, PostgreSQL 17.

What you will have at the end

A unified internal developer and automation plane: Authentik acting as your OIDC/SAML identity provider with accurate client IP auditing, Gitea or Forgejo integrated with Authentik OIDC + clean SSH/HTTPS clone URLs, and n8n running on PostgreSQL with verified webhook callbacks and encrypted credentials.

Before you start

  • A Linux host with Docker Compose v2 and a reverse proxy configured as in Configure Caddy and Traefik reverse proxies reliably.
  • PostgreSQL 17 and Valkey/Redis reachable on an internal Docker network.

Steps

1. Deploy Authentik with trusted proxy CIDRs and a generated secret key

Generate cryptographic secrets cleanly before first boot (chmod 600 .env):

AUTHENTIK_SECRET_KEY=$(openssl rand -base64 48)
N8N_ENCRYPTION_KEY=$(openssl rand -hex 32)

In Authentik's environment, explicitly declare your reverse proxy bridge subnet so failed logins log real client IPs instead of 172.x.x.x:

AUTHENTIK_SECRET_KEY=<generated>
AUTHENTIK_POSTGRESQL__HOST=authentik-pg
AUTHENTIK_REDIS__HOST=authentik-redis
AUTHENTIK_LISTEN__TRUSTED_PROXY_CIDRS=172.16.0.0/12,127.0.0.1
AUTHENTIK_ERROR_REPORTING__ENABLED=false

Complete initial setup immediately at https://auth.YOUR_DOMAIN/if/flow/initial-setup/ on a private or allowlisted session before exposing registration flows broadly.

2. Configure Gitea or Forgejo ROOT_URL, SSH_DOMAIN, and Authentik OIDC

Set explicit external URLs inside Gitea's app.ini (or GITEA__server__* environment variables) so web cloning URLs, OAuth2 redirects, and Git SSH URLs match your public hostname:

GITEA__server__ROOT_URL=https://git.YOUR_DOMAIN/
GITEA__server__DOMAIN=git.YOUR_DOMAIN
GITEA__server__SSH_DOMAIN=git.YOUR_DOMAIN
GITEA__server__SSH_PORT=2222
GITEA__security__INSTALL_LOCK=true
GITEA__service__DISABLE_REGISTRATION=true
GITEA__openid__ENABLE_OPENID_SIGNIN=false

If port 22 belongs to host OpenSSH, publish Gitea's SSH port on 2222:22 and open 2222/tcp explicitly in /etc/ufw/after.rules DOCKER-USER so git clone ssh://git@git.YOUR_DOMAIN:2222/org/repo.git works cleanly.

Bind Gitea to Authentik OIDC in Site Administration -> Authentication Sources -> Add Source -> OpenID Connect with auto-discovery URL https://auth.YOUR_DOMAIN/application/o/<slug>/.well-known/openid-configuration.

3. Harden n8n with WEBHOOK_URL, encryption key, and PostgreSQL

Default SQLite n8n instances hit lock errors under concurrent webhooks. Point n8n to PostgreSQL and declare WEBHOOK_URL plus strict file permissions:

  n8n:
    image: n8nio/n8n:latest
    restart: unless-stopped
    environment:
      - N8N_HOST=n8n.YOUR_DOMAIN
      - N8N_PORT=5678
      - N8N_PROTOCOL=https
      - WEBHOOK_URL=https://n8n.YOUR_DOMAIN/
      - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
      - N8N_ENCRYPTION_KEY=${N8N_ENCRYPTION_KEY}
      - DB_TYPE=postgresdb
      - DB_POSTGRESDB_HOST=n8n-postgres
      - DB_POSTGRESDB_DATABASE=n8n
      - DB_POSTGRESDB_USER=n8n
      - DB_POSTGRESDB_PASSWORD=${N8N_DB_PASSWORD}
      - N8N_RUNNERS_ENABLED=true
    volumes:
      - n8n_data:/home/node/.n8n
    networks:
      - proxy_net
      - internal_net

Notice N8N_ENCRYPTION_KEY: back it up in your Key Vault or password manager immediately. Losing N8N_ENCRYPTION_KEY makes every saved API credential inside the n8n database unreadable after restoring.

Check that it works

curl -fsS https://auth.YOUR_DOMAIN/-/health/live/
curl -fsS https://git.YOUR_DOMAIN/api/v1/version
curl -fsS https://n8n.YOUR_DOMAIN/healthz

Confirm each responds with HTTP 200, and test triggering a sample n8n webhook URL (https://n8n.YOUR_DOMAIN/webhook-test/...) while viewing live SSE execution logs in the n8n editor.

What can go wrong

  • Authentik OIDC login redirects to http://localhost:9000 or fails CSRF state verification. Caddy/Traefik stripped Host or X-Forwarded-Proto, or AUTHENTIK_LISTEN__TRUSTED_PROXY_CIDRS omits your Docker subnet (docker network inspect proxy_net).
  • n8n Code/HTTP nodes work in test mode, but webhooks time out or return http://localhost:5678. WEBHOOK_URL was omitted from container environment variables; external SaaS callers need WEBHOOK_URL=https://n8n.YOUR_DOMAIN/.
  • Gitea shows internal container IP in clone URLs. GITEA__server__ROOT_URL was left unset. Set ROOT_URL with trailing slash and restart the container.

Good practice

  • Disable local self-registration in Gitea (DISABLE_REGISTRATION=true) once Authentik OIDC SSO is active.
  • Enable Authentik MFA (WebAuthn Passkeys + TOTP) for all Admin accounts on akadmin or disable default akadmin after creating named administrators.
  • Keep N8N_ENCRYPTION_KEY stored separately from database backups so stolen DB dumps cannot decrypt downstream OAuth/API secrets.

Where to go next

  • Deploy Grafana, VictoriaMetrics, and Uptime Kuma monitoring
  • Configure Caddy and Traefik reverse proxies reliably
  • Cloud Identity with OIDC, SCIM, and Zero Trust Access

Related Articles

Configure Caddy and Traefik reverse proxies reliably

Read more

Deploy Grafana, VictoriaMetrics, and Uptime Kuma cleanly

Read more

Run Nextcloud, Immich, and Vaultwarden reliably behind proxies

Read more

Frequently Asked Questions

What does the Wire Authentik, Gitea, and n8n cleanly behind a proxy documentation guide cover?
Configure Authentik trusted proxy CIDRs and OIDC SSO, Gitea ROOT_URL and Git SSH passthrough, and n8n WEBHOOK_URL with PostgreSQL backing in Docker. It is rated intermediate difficulty (30 min) and applies to Servers Are Up infrastructure and workflows.
Can I manage or automate these steps through the Servers Are Up dashboard, REST API v1, or MCP server?
Yes. Every Servers Are Up server includes browser-based SSH, WebRDP, and VNC console access in the dashboard, plus programmatic control via the REST API v1 (/api/v1) and hosted Model Context Protocol server (/api/mcp/v1) using a scoped Personal Access Token.

Need hands-on help with Wire Authentik, Gitea, and n8n cleanly behind a proxy?

Every Servers Are Up virtual machine and container includes an integrated HTML5 browser-based SSH, RDP, and VNC console in your dashboard, default-off inbound firewall rules with per-IP allow-lists, and full programmatic control via REST API v1 and Model Context Protocol (MCP). Explore our Virtual Datacenter Plans or reach out to Servers Are Up Support.

Was this article helpful?

On this page

What you will have at the endBefore you startSteps1. Deploy Authentik with trusted proxy CIDRs and a generated secret key2. Configure Gitea or Forgejo ROOT_URL, SSH_DOMAIN, and Authentik OIDC3. Harden n8n with WEBHOOK_URL, encryption key, and PostgreSQLCheck that it worksWhat can go wrongGood practiceWhere to go next
Need Live Commands?

Open Aria in Wide Engineering Mode for distro-specific commands, compose tweaks, and isolated environment troubleshooting.

Knowledge Library