enhance(dev): non-production環境でhttpサーバー間でもユーザー、ノートの連合が可能なように (#10717)
* enhance(dev): non-production環境でhttpサーバー間でもユーザー、ノートの連合が可能なように * refactor (use checkHttps) * MISSKEY_WEBFINGER_USE_HTTP * Environment Variable readme * NEVER USE IN PRODUCTION * fix punyHost
This commit is contained in:
parent
2d3d986d13
commit
09764b909b
6 changed files with 32 additions and 13 deletions
4
packages/backend/src/misc/check-https.ts
Normal file
4
packages/backend/src/misc/check-https.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export function checkHttps(url: string) {
|
||||
return url.startsWith('https://') ||
|
||||
(url.startsWith('http://') && process.env.NODE_ENV !== 'production');
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue