Skip to content

Latest commit

 

History

History
98 lines (78 loc) · 2.74 KB

File metadata and controls

98 lines (78 loc) · 2.74 KB

Gitea Engineered by OCTOPODAMI (GEBO) SSL

You can secure your Gitea installation with an SSL certificate by following the instructions below.

  • Login into your domain registrar.
  • Update your domain A or CNAME record to point to the EC2 Instance IP Address.
  • Access your Gitea admin panel at http://your-instance-ip:3000 and update the Server Domain and Gitea Base URL settings under Configuration > Server. For example, change from http://your-instance-ip:3000 to https://mydomainname.com
  • Wait for 15-20 minutes so DNS can propagate.
  • Login into the EC2 instance via the terminal.
  • Run these commands:
sudo su -
dnf update -y
amazon-linux-extras install epel -y
dnf install certbot python3-certbot-nginx -y
sudo certbot --nginx
## Answer all the questions (this is a comment)
## Then, specify your domain name (this is a comment)
sudo certbot renew --dry-run
  • Update Gitea configuration to use HTTPS:
sudo nano /etc/gitea/app.ini

Find and update these settings:

[server]
PROTOCOL = https
DOMAIN = mydomainname.com
ROOT_URL = https://mydomainname.com/
  • Restart Gitea:
sudo systemctl restart gitea
  • Access your domain name (https://mydomainname.com) in the browser.

Alternative: Using Gitea with Let's Encrypt Directly

If you prefer to configure SSL directly through Gitea without nginx:

  1. Ensure your domain points to your EC2 instance
  2. Install certbot:
    sudo dnf install certbot -y
  3. Stop Gitea temporarily:
    sudo systemctl stop gitea
  4. Obtain certificate:
    sudo certbot certonly --standalone -d mydomainname.com
  5. Update Gitea configuration:
    sudo nano /etc/gitea/app.ini
    Add or update:
    [server]
    PROTOCOL = https
    DOMAIN = mydomainname.com
    ROOT_URL = https://mydomainname.com/
    CERT_FILE = /etc/letsencrypt/live/mydomainname.com/fullchain.pem
    KEY_FILE = /etc/letsencrypt/live/mydomainname.com/privkey.pem
  6. Restart Gitea:
    sudo systemctl start gitea

Links

  1. Product Website
  2. EULA
  3. Knowledgebase
  4. Issue Tracking
  5. Changelog

Support

Email support is available to Amazon Web Services Marketplace Customers. We do not offer refunds, but you may terminate your Gitea Engineered by OCTOPODAMI (GEBO) Stack at any time.

License

The documentation is published under BSD 3-Clause License.

Copyright

(c) 2020 - 2025 Cloudeya Limited.