ourongxing / newsnow

Elegant reading of real-time and hottest news
https://newsnow.busiyi.world
MIT License
69 stars 8 forks source link

docker部署后看不到github登录 #2

Open charley008 opened 2 hours ago

charley008 commented 2 hours ago

按文档来部署了docker版,好像没看到github账号登录 。 屏幕截图 2024-10-24 130355 是不是还有什么地方需要添加的?

services:
  newsnow:
    image: ghcr.io/ourongxing/newsnow:latest
    container_name: newsnow
    restart: always
    ports:
      - '127.0.0.1:4444:4444'
    environment:
      - G_CLIENT_ID=afsdfdasfasdfhFF7fUQAka4P
      - G_CLIENT_SECRET=test485b32e3d46201d8ddd407b03
      - JWT_SECRET=test485b32e3d46201d8ddd407b03
      - INIT_TABLE=
ourongxing commented 2 hours ago

emmm,因为登录按钮是否显示是靠 build 的时候读取环境变量来判断是否需要登录。所以你可能需要在本地 build docker 镜像。把这些数据填入 .env.server,等会我改一下吧,前端默认显示登录按钮。