summaryrefslogtreecommitdiff
path: root/bin/idp
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-03-06 11:37:01 -0700
committermo khan <mo@mokhan.ca>2025-03-06 11:37:01 -0700
commitbad76558aca0719db95f5572c7847fd971051186 (patch)
treeac04873ec207edead082cdf8dc4e304c4cde9ad0 /bin/idp
parent27e5b886ad9e9e4c0d831162dbae9d9025fb2903 (diff)
refactor: move protobuf rpc services to lib/authx/rpc
Diffstat (limited to 'bin/idp')
-rwxr-xr-xbin/idp5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/idp b/bin/idp
index bc949d2e..f43d495f 100755
--- a/bin/idp
+++ b/bin/idp
@@ -13,6 +13,11 @@ gemfile do
gem "webrick", "~> 1.0"
end
+lib_path = Pathname.new(__FILE__).parent.parent.join('lib').realpath.to_s
+$LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path)
+
+require 'authx'
+
$scheme = ENV.fetch("SCHEME", "http")
$port = ENV.fetch("PORT", 8282).to_i
$host = ENV.fetch("HOST", "localhost:#{$port}")