Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion forgejo.subdomain.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 2025/07/18
## Version 2026/09/01
# make sure that your forgejo container is named forgejo
# make sure that your dns has a cname set for forgejo
# edit the following parameters in /data/forgejo/conf/app.ini or set as ENV vars in your container
Expand Down Expand Up @@ -57,6 +57,11 @@ server {

}

# Restrict access to the internal API
location ^~ /api/internal {
deny all;
}

location ~ (/forgejo)?/info/lfs {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
Expand Down
7 changes: 6 additions & 1 deletion forgejo.subfolder.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 2024/04/20
## Version 2026/09/01
# make sure that your forgejo container is named forgejo
# make sure that forgejo is set to work with the base url /forgejo/
# The following parameters in /data/forgejo/conf/app.ini should be edited to match your setup
Expand All @@ -12,6 +12,11 @@ location /forgejo {
return 301 $scheme://$host/forgejo/;
}

# Restrict access to the internal API
location ^~ /forgejo/api/internal {
deny all;
}

location ^~ /forgejo/ {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
Expand Down
7 changes: 6 additions & 1 deletion gitea.subdomain.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 2026/07/03
## Version 2026/09/01
# make sure that your gitea container is named gitea
# make sure that your dns has a cname set for gitea
# edit the following parameters in /data/gitea/conf/app.ini
Expand Down Expand Up @@ -69,6 +69,11 @@ server {

}

# Restrict access to the internal API
location ^~ /api/internal {
deny all;
}

location ~ (/gitea)?/(api|info/lfs) {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
Expand Down
7 changes: 6 additions & 1 deletion gitea.subfolder.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 2023/02/05
## Version 2026/09/01
# make sure that your gitea container is named gitea
# make sure that gitea is set to work with the base url /gitea/
# The following parameters in /data/gitea/conf/app.ini should be edited to match your setup
Expand All @@ -11,6 +11,11 @@ location /gitea {
return 301 $scheme://$host/gitea/;
}

# Restrict access to the internal API
location ^~ /gitea/api/internal {
deny all;
}

location ^~ /gitea/ {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
Expand Down
Loading