Own Your Code Forever - A Private Git Server Setup Guide with Tailscale and Forgejo

Tailscale September 12, 2025
Video Thumbnail
Tailscale Logo

Tailscale

@tailscale

About

The official YouTube channel for all things Tailscale.

Video Description

In this comprehensive tutorial, learn how to set up your own private Git server using Forgejo (a self-hostable code forge) running in an LXC container on Proxmox. Alex walks through the entire process from creating the container to configuring Forgejo with all the features you'd expect from a modern code hosting platform - repositories, issues, workflows, and even automatic repository mirroring. This setup gives you complete control over your code and data while running on your own infrastructure. The real magic happens when we integrate Tailscale to make your self-hosted Git server accessible from anywhere in the world without port forwarding or firewall configuration. Using Tailscale's networking capabilities, we'll set up seamless SSH access for Git operations and automatic HTTPS certificates, making your private Git server work just like any cloud-hosted solution. As usual, there are chapters available for finding the bit of the video you need. Personal accounts are always free on Tailscale and can include up to 3 users and 100 devices. Get started today at https://tailscale.com/yt === Links: - https://forgejo.org/ - https://codeberg.org/ - https://github.com/tailscale-dev/video-code-snippets/tree/main/2025-09-forgejo === Chapters: 00:00 - Start 00:26 - About the Forgejo project 03:16 - Forgejo quick walkthrough 06:35 - Forgejo configuration 12:13 - Configuring TCPForward and Tailscale Serve 14:13 - LXC creation 21:28 - Fixing TLS 24:08 - TCPForward via Serve for SSH clones 26:59 - Outro

You May Also Like

Essential Git Server Setup

AI-recommended products based on this video

Loading...
10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

(1)
$99.99
FREE delivery Mon, Aug 11
Loading...
ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

(49)
$117.29$102.21
$6.86 delivery Thu, Aug 14
Loading...
7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

(61)
$68.99
FREE delivery Tue, Aug 12
Loading...
BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

(288)
$54.14
FREE delivery Sun, Jun 22
Loading...
Western Digital 2TB WD Blue SA510 SATA Internal Solid State Drive SSD - SATA III 6 Gb/s, 2.5"/7mm, Up to 560 MB/s - WDS200T3B0A

Western Digital 2TB WD Blue SA510 SATA Internal Solid State Drive SSD - SATA III 6 Gb/s, 2.5"/7mm, Up to 560 MB/s - WDS200T3B0A

(74,910)
$169.97
FREE delivery Tue, Jun 17
50+ bought in past month
Loading...
90W AC Power Adapter for Dell OptiPlex 3000 5000 7000 9020 Series Micro Desktop Inspiron 20" 22" 24" 27" AIO Desktop, Inspiron 15 16 17 14 13 3000 5000 7000 Series Laptop Charger

90W AC Power Adapter for Dell OptiPlex 3000 5000 7000 9020 Series Micro Desktop Inspiron 20" 22" 24" 27" AIO Desktop, Inspiron 15 16 17 14 13 3000 5000 7000 Series Laptop Charger

(5)
$29.99
FREE delivery Tue, Aug 26 on your first order
50+ bought in past month
Loading...
BOSGAME Linux Mini PC, Intel 12th N100 16GB DDR4 RAM 512GB SSD Linux Server Computers Preinstalled Ubuntu 22.04,Support 4K Triple Display/USB3.2/WiFi 5/2.5GbE

BOSGAME Linux Mini PC, Intel 12th N100 16GB DDR4 RAM 512GB SSD Linux Server Computers Preinstalled Ubuntu 22.04,Support 4K Triple Display/USB3.2/WiFi 5/2.5GbE

(44)
$219.00
PrimeFREE delivery Mon, Jun 16
Loading...
APILDELLA 14’’ Triple Laptop Screen Extender, 1080P FHD Portable Dual Monitor for Laptop USB C HDMI, Plug-Play Monitor Extender for Mac/Windows, Fit 13”-17.3” Laptops

APILDELLA 14’’ Triple Laptop Screen Extender, 1080P FHD Portable Dual Monitor for Laptop USB C HDMI, Plug-Play Monitor Extender for Mac/Windows, Fit 13”-17.3” Laptops

(696)
$449.15
FREE delivery Aug 13 - 19
Loading...
(2 Pack) Outlet Wall Mount Holder for Google Home Mini and Google Nest Mini, A Space-Saving Accessories with Cord Management for Google Mini Smart Speaker, No Messy Wires or Screws

(2 Pack) Outlet Wall Mount Holder for Google Home Mini and Google Nest Mini, A Space-Saving Accessories with Cord Management for Google Mini Smart Speaker, No Messy Wires or Screws

(3,057)
$15.99
Prime
200+ bought in past month
Loading...
GLP-1 Patches-Weight Management Patches for Men & Women, Balance Metabolism(P2)

GLP-1 Patches-Weight Management Patches for Men & Women, Balance Metabolism(P2)

(3)
$35.99
FREE delivery Mon, Sep 1
Loading...
Hey Curls toronto 5-in-1 Hot Air Styler & Blow Dryer Brush, Negative Ionic Feature for Efficient Drying, Frizz Management, Curling, Volumizing & Straightening (White)

Hey Curls toronto 5-in-1 Hot Air Styler & Blow Dryer Brush, Negative Ionic Feature for Efficient Drying, Frizz Management, Curling, Volumizing & Straightening (White)

(9)
$32.11$30.22
FREE delivery Dec 3 - 23
1K+ bought in past month
Loading...
Animal Handling Gloves - Heavy Duty Protective Gauntlets for Pet Grooming | Puncture Resistant Bite Sleeves | Scratch Proof Hand Guards for Safe Wildlife &Livestock Management

Animal Handling Gloves - Heavy Duty Protective Gauntlets for Pet Grooming | Puncture Resistant Bite Sleeves | Scratch Proof Hand Guards for Safe Wildlife &Livestock Management

(0)
$14.76
$5.99 delivery Jul 2 - 22
Loading...
2-Bay NAS R1 PRO Ryzen 7 5825U Mini PC 2X i226-V 2.5G Firewall Router Network Storage Server Private Cloud

2-Bay NAS R1 PRO Ryzen 7 5825U Mini PC 2X i226-V 2.5G Firewall Router Network Storage Server Private Cloud

(0)
$509.99
$2 delivery Jul 2 - 14