Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Support separate URLs for server/client side connection to Kratos

未关闭
#595 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清

调研方向

首先检查 @ory/nextjs 配置以及 ORY_SDK_URL 的所有使用位置,然后追踪服务器请求和浏览器重定向的配置方式。完成的标准是:服务器可以使用内部 Kratos URL,而浏览器对自助服务端点使用公开 URL,且不会重定向到内部地址。

由索引模型根据 Issue 内容生成。

描述

Needs Triage
Preflight checklist
Ory Network Project

No response

Describe your problem

In a self-hosted environment with limited outbound connectivity, it may not be possible for the login (NextJS) server to communicate with Kratos via the public internal URL. Currently the env (NEXT_PUBLIC_)ORY_SDK_URL affects both the server- and client-side connections.

Describe your ideal solution

I would like to be able to specify a public URL https://example.com so that the browser can connect to Kratos public endpoints at https://example.com/self-service/... etc., and also an "internal" URL http://kratos-public that the NextJS server app can use to make connections directly within the same internal network.

Workarounds or alternatives

I have tried setting the external URL in the ory.config.ts file to the public URL and passing the private URL to the server with ORY_SDK_URL, but the browser still ends up redirecting the user to the private URL, which is unreachable.

Version

@ory/nextjs/1.0.0-rc.1

Additional Context

No response

主要语言
TypeScript
星标
187
派生
80
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ory/elements 的其他 Issue

查看 ory/elements 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。