Skip to content

Commit 6a1aebb

Browse files
authored
Merge branch 'main' into frontport-16450-main
2 parents b23a829 + 95f4004 commit 6a1aebb

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ steps:
404404

405405
- name: update
406406
pull: default
407-
image: alpine:3.14
407+
image: alpine:3.13
408408
commands:
409409
- ./build/update-locales.sh
410410

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
###################################
33
#Build stage
4-
FROM golang:1.16-alpine3.14 AS build-env
4+
FROM golang:1.16-alpine3.13 AS build-env
55

66
ARG GOPROXY
77
ENV GOPROXY ${GOPROXY:-direct}
@@ -25,7 +25,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2525
# Begin env-to-ini build
2626
RUN go build contrib/environment-to-ini/environment-to-ini.go
2727

28-
FROM alpine:3.14
28+
FROM alpine:3.13
2929
LABEL maintainer="[email protected]"
3030

3131
EXPOSE 22 3000

Dockerfile.rootless

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
###################################
33
#Build stage
4-
FROM golang:1.16-alpine3.14 AS build-env
4+
FROM golang:1.16-alpine3.13 AS build-env
55

66
ARG GOPROXY
77
ENV GOPROXY ${GOPROXY:-direct}
@@ -25,7 +25,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2525
# Begin env-to-ini build
2626
RUN go build contrib/environment-to-ini/environment-to-ini.go
2727

28-
FROM alpine:3.14
28+
FROM alpine:3.13
2929
LABEL maintainer="[email protected]"
3030

3131
EXPOSE 2222 3000

docs/content/doc/usage/fail2ban-setup.en-us.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,12 @@ this to your Nginx configuration so that IPs don't show up as 127.0.0.1:
108108
```
109109
proxy_set_header X-Real-IP $remote_addr;
110110
```
111+
112+
The security options in `app.ini` need to be adjusted to allow the interpretation of the headers
113+
as well as the list of IP addresses and networks that describe trusted proxy servers
114+
(See the [configuration cheat sheet](https://docs.gitea.io/en-us/config-cheat-sheet/#security-security) for more information).
115+
116+
```
117+
REVERSE_PROXY_LIMIT = 1
118+
REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.1/8 ; 172.17.0.0/16 for the docker default network
119+
```

0 commit comments

Comments
 (0)