Coder Social home page Coder Social logo

[Bug]: 一直请求https://127.0.0.1:8360/api/token?lang=zh-CN || [Bug]: Always request https://127.0.0.1:8360/api/token?lang=zh-CN about waline HOT 4 CLOSED

bboysoulcn avatar bboysoulcn commented on May 24, 2024
[Bug]: 一直请求https://127.0.0.1:8360/api/token?lang=zh-CN || [Bug]: Always request https://127.0.0.1:8360/api/token?lang=zh-CN

from waline.

Comments (4)

lizheming avatar lizheming commented on May 24, 2024

可以更新到 1.28.2 再看看哈,两个小版本修复了点问题。如果问题还在可以提供个地址我 check 下,我本地试了下是没问题的。


You can update to 1.28.2 and have a look again, the two small versions have fixed some problems. If the problem is still there, you can provide an address for me to check. I tried it locally and it was fine.

from waline.

bboysoulcn avatar bboysoulcn commented on May 24, 2024

不行的,

version: '3'

services:
  waline:
    container_name: waline
    image: lizheming/waline:1.28.2
    restart: always
    ports:
      - 8360:8360
    volumes:
      - ./data:/app/data
    environment:
      - "TZ=Asia/Shanghai"
      - "SQLITE_PATH=/app/data"
      - "JWT_TOKEN="
      - "SITE_NAME=blog"
      - "SITE_URL="
      - "SMTP_SERVICE="
      - "[email protected]"
      - "SMTP_PASS="
      - "[email protected]"
      - "SECURE_DOMAINS="
      - "AKISMET_KEY=false"

from waline.

bboysoulcn avatar bboysoulcn commented on May 24, 2024

我前面加了一个nginx做反向代理

server {
    listen       443 ssl http2;
    server_name  xxx.xxx.xxxx;
    ssl_certificate cert/cloudflare/cloudflare.pem;
    ssl_certificate_key cert/cloudflare/cloudflare.key;
    ssl_session_timeout 5m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    #表示使用的加密套件的类型。
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #表示使用的TLS协议的类型。
    ssl_prefer_server_ciphers on;
    location /{
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
        proxy_pass http://127.0.0.1:8360;
        access_log logs/comment.log main;
        client_max_body_size 1000m;
    }
}

不知道是不是这个原因


I added a nginx in front of it as a reverse proxy

server {
    listen 443 ssl http2;
    server_name xxx.xxx.xxxx;
    ssl_certificate cert/cloudflare/cloudflare.pem;
    ssl_certificate_key cert/cloudflare/cloudflare.key;
    ssl_session_timeout 5m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    # Indicates the type of cipher suite used.
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #Indicates the type of TLS protocol used.
    ssl_prefer_server_ciphers on;
    location /{
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection $connection_upgrade;
        proxy_pass http://127.0.0.1:8360;
        access_log logs/comment.log main;
        client_max_body_size 1000m;
    }
}

I don't know if this is the reason

from waline.

bboysoulcn avatar bboysoulcn commented on May 24, 2024

可以了,nginx的配置少了

proxy_set_header Host $host;


It’s ok, the configuration of nginx is less

proxy_set_header Host $host;

from waline.

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.