File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed
Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
66ARG GOPROXY
77ENV GOPROXY ${GOPROXY:-direct}
@@ -25,7 +25,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2525# Begin env-to-ini build
2626RUN go build contrib/environment-to-ini/environment-to-ini.go
2727
28- FROM alpine:3.14
28+ FROM alpine:3.13
2929LABEL maintainer=
"[email protected] " 3030
3131EXPOSE 22 3000
Original file line number Diff line number Diff line change 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
66ARG GOPROXY
77ENV GOPROXY ${GOPROXY:-direct}
@@ -25,7 +25,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
2525# Begin env-to-ini build
2626RUN go build contrib/environment-to-ini/environment-to-ini.go
2727
28- FROM alpine:3.14
28+ FROM alpine:3.13
2929LABEL maintainer="
[email protected] "
3030
3131EXPOSE 2222 3000
Original file line number Diff line number Diff line change @@ -108,3 +108,12 @@ this to your Nginx configuration so that IPs don't show up as 127.0.0.1:
108108```
109109proxy_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+ ```
You can’t perform that action at this time.
0 commit comments