Giter Site home page Giter Site logo

PasswordAuthenticator about dockergs HOT 2 CLOSED

yuukips avatar yuukips commented on July 17, 2024
PasswordAuthenticator

from dockergs.

Comments (2)

akbaryahya avatar akbaryahya commented on July 17, 2024

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.

1995chen avatar 1995chen commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.