Adding an SSL Certificate to Docker Deployment #274

Closed
opened 2025-11-02 03:16:55 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @WDC on GitHub (Jan 24, 2017).

  • Gitea version: 1.0.0+148-g521d429b
  • Git version: 2.7.4
  • Operating system: Ubuntu 16.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

What is the preferred method of adding an SSL certificate to Gitea, when deployed using Docker? I have searched through the container, and cannot find nginx anywhere, and there seems to be no way of adding the certificates in the app.ini configuration file, or elsewhere.

Thanks for your time!

Originally created by @WDC on GitHub (Jan 24, 2017). - Gitea version: 1.0.0+148-g521d429b - Git version: 2.7.4 - Operating system: Ubuntu 16.04 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [X] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [X] Not relevant ## Description What is the preferred method of adding an SSL certificate to Gitea, when deployed using Docker? I have searched through the container, and cannot find `nginx` anywhere, and there seems to be no way of adding the certificates in the `app.ini` configuration file, or elsewhere. Thanks for your time!
GiteaMirror added the type/question label 2025-11-02 03:16:55 -06:00
Author
Owner

@tboerger commented on GitHub (Jan 24, 2017):

I suggest to use q revers proxy for SSL termination, but if you really want to use Gitea for the SSL termination you can always find the app.ini within the volume /data/gitea/conf/, additionally just link your certs as volumes into the container and link them in the app.ini. If you got more questions like that feel free to take a look at our Gitter chat.

@tboerger commented on GitHub (Jan 24, 2017): I suggest to use q revers proxy for SSL termination, but if you really want to use Gitea for the SSL termination you can always find the `app.ini` within the volume `/data/gitea/conf/`, additionally just link your certs as volumes into the container and link them in the `app.ini`. If you got more questions like that feel free to take a look at our Gitter chat.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#274