Comments (2)
it seems to be missing headers data if you are using nginx try using this:
ignore_invalid_headers off;
location / {
proxy_pass https://$server:$port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass_request_headers on;
}
from dockergs.
thank you ,now i can login,but another question,I get white screen when i success login.
i will create a new issue, thank you. my full yaml bellow:
# doc: https://github.com/akbaryahya/DockerGC/blob/main/docker-compose.yml
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: genshin
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: genshin
spec:
replicas: 1
selector:
matchLabels:
app: genshin
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
app: genshin
spec:
restartPolicy: Always
nodeName: centos-01
volumes:
- name: genshin
persistentVolumeClaim:
claimName: genshin
containers:
- name: mongodb
imagePullPolicy: IfNotPresent
image: mongo
ports:
- name: tcp-port
containerPort: 27017
protocol: TCP
env:
- name: TZ
value: "Asia/Shanghai"
- name: MONGO_INITDB_ROOT_USERNAME
value: "nani"
- name: MONGO_INITDB_ROOT_PASSWORD
value: "moemoekyu"
volumeMounts:
- mountPath: /data/db
name: genshin
subPath: db
- name: genshin
imagePullPolicy: IfNotPresent
image: siakbary/dockergc:alpine-Patch-2.7-245e196
stdin: true
tty: true
ports:
- name: udp-port
containerPort: 22102
protocol: UDP
- name: https-port
containerPort: 443
protocol: TCP
- name: http-port
containerPort: 80
protocol: TCP
args:
- "-d"
- "mongodb://nani:[email protected]:27017"
- "-b"
- "genshin.local.domain"
- "-g"
- "0.0.0.0"
- "-f"
- "yes"
env:
- name: TZ
value: "Asia/Shanghai"
volumeMounts:
- mountPath: /home/Grasscutter/resources
name: genshin
subPath: resources
---
apiVersion: v1
kind: Service
metadata:
name: genshin
spec:
ports:
- port: 443
targetPort: 443
name: https-port
- port: 80
targetPort: 80
name: http-port
- port: 22102
targetPort: 22102
nodePort: 22102
name: udp-port
selector:
app: genshin
type: NodePort
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: genshin.local.domain
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass_request_headers on;
spec:
rules:
- host: genshin.local.domain
http:
paths:
- backend:
serviceName: genshin
servicePort: 443
tls:
- hosts:
- genshin.local.domain
secretName: genshin
attention:
change ingress configmap
ignore-invalid-headers: false
from dockergs.
Related Issues (20)
- Expose config.json HOT 1
- grasscutter.Grasscutter EOF detected. HOT 5
- i cant type commands HOT 1
- The database is misspelled as ''datebase'' HOT 1
- MongoSocketOpenException HOT 2
- Activity does not work HOT 1
- expired domain HOT 1
- 3.3 close unexpectedly
- 3.4jar only not have jar HOT 5
- 怎么跟nginx 配合 HOT 1
- Plz make source code available.
- server version is 2.7 HOT 1
- Failed to load resources HOT 3
- I want to create a 3.5 local server HOT 1
- 运行3.6版本的找不到resource HOT 1
- GIVE ALL BUG{public} HOT 1
- Constant restart on grasscutter HOT 3
- Error Download HOT 2
- manifest for siakbary/dockergs:alpine-gc-3.5 not found HOT 3
- How to connect to server? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockergs.