Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
f1aa8eb
test
zhravan Sep 10, 2025
60d248b
test
zhravan Sep 10, 2025
c4e969f
test
zhravan Sep 10, 2025
ee0fbd4
Merge branch 'master' of github.com:raghavyuva/nixopus
zhravan Sep 15, 2025
a808280
Merge branch 'master' of github.com:raghavyuva/nixopus
zhravan Sep 19, 2025
aa1a1b2
Merge branch 'master' of github.com:raghavyuva/nixopus
zhravan Sep 26, 2025
30ba75b
Merge branch 'master' of github.com:raghavyuva/nixopus
zhravan Oct 10, 2025
15e4005
hotfix(view): AppInfo Env naming for client side config
zhravan Oct 10, 2025
c68f0fe
hotfix(api): add env for SuperTokens dep
zhravan Oct 10, 2025
7258826
hotfix(api): add supertoken port as config
zhravan Oct 10, 2025
56ea242
hotfix(api): add supertoken port as config
zhravan Oct 10, 2025
338d5d1
hotfix(api): add supertoken port as config
zhravan Oct 10, 2025
7bdb73a
hotfix(api): add supertoken port as config
zhravan Oct 10, 2025
d538655
ci(build): linter build for view
zhravan Oct 10, 2025
07cca71
hotfix(conf): add cli config
zhravan Oct 10, 2025
f536054
hotfix(conf): add cli config for supertkns
zhravan Oct 10, 2025
1f39c6d
hotfix(conf): add cli config for supertkns
zhravan Oct 10, 2025
2667b83
fix: supertoken integration config for setup
zhravan Oct 10, 2025
99dbb2c
fix: supertoken integration config for setup
zhravan Oct 10, 2025
429e081
Merge branch 'master' of github.com:raghavyuva/nixopus into fix-cli-c…
zhravan Oct 11, 2025
f4671e6
chore: add missing envs in production stage
zhravan Oct 11, 2025
bf93440
Merge branch 'master' of github.com:raghavyuva/nixopus into fix-cli-c…
zhravan Oct 11, 2025
1b8a4a5
fix: supertokens enabled via HTTP
zhravan Oct 11, 2025
952a2b9
fix: supertokens URI for ip vs domain
zhravan Oct 11, 2025
c2a0d02
Merge branch 'master' into fix-port-ip-vs-uri
zhravan Oct 11, 2025
9f59b11
fix: apiDomain getting replace for any sub domain /api
zhravan Oct 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion cli/app/commands/install/run.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import ipaddress
import json
import os
import re
Expand Down Expand Up @@ -439,6 +440,14 @@ def _show_success_message(self):
self.logger.info("If you have any questions, please visit the community forum at https://discord.gg/skdcq39Wpv")
self.logger.highlight("See you in the community!")

def _get_supertokens_connection_uri(self, protocol: str, api_host: str, supertokens_api_port: int):
protocol = protocol.replace("https", "http")
try:
ipaddress.ip_address(api_host)
return f"{protocol}://{api_host}"
except ValueError:
return f"{protocol}://{api_host}:{supertokens_api_port}"

def _update_environment_variables(self, env_values: dict) -> dict:
updated_env = env_values.copy()
host_ip = HostInformation.get_public_ip()
Expand All @@ -461,7 +470,8 @@ def _update_environment_variables(self, env_values: dict) -> dict:
"SUPERTOKENS_API_KEY": "NixopusSuperTokensAPIKey",
"SUPERTOKENS_API_DOMAIN": f"{protocol}://{api_host}/api",
"SUPERTOKENS_WEBSITE_DOMAIN": f"{protocol}://{view_host}",
"SUPERTOKENS_CONNECTION_URI": f"{protocol}://{api_host}:{supertokens_api_port}".replace("https", "http"),
# TODO: temp fix, remove this once we have a secure connection
"SUPERTOKENS_CONNECTION_URI": self._get_supertokens_connection_uri(protocol, api_host, supertokens_api_port),
}

for key, value in key_map.items():
Expand Down
2 changes: 1 addition & 1 deletion cli/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nixopus"
version = "0.1.9"
version = "0.1.10"
description = "A CLI for Nixopus"
authors = ["Nixopus <raghavyuva@gmail.com>"]
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions view/app/config/appInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { getBaseUrl } from '@/redux/conf';

export const getAppInfo = async () => {
const baseUrl = await getBaseUrl();
const apiDomain = baseUrl.replace('/api', '');
const apiDomain = baseUrl.replace('://', 'TEMP').replace('/api', '').replace('TEMP', '://');

return {
// learn more about this on https://supertokens.com/docs/thirdpartyemailpassword/appinfo
appName: 'Nixopus',
Expand Down
Loading