diff --git a/.env.test b/.env.test index cc153db..b57dca0 100644 --- a/.env.test +++ b/.env.test @@ -21,7 +21,8 @@ LNDHUB_PUBLIC_KEY='024cd3be18617f39cf645851e3ba63f51fc13f0bb09e3bb25e6fd4de55648 NOSTR_PRIVATE_KEY='7c3ef7e448505f0615137af38569d01807d3b05b5005d5ecf8aaafcd40323cea' NOSTR_PUBLIC_KEY='bdd76ce2934b2f591f9fad2ebe9da18f20d2921de527494ba00eeaa0a0efadcf' -RS_STORAGE_URL='https://storage.kosmos.org' RS_REDIS_URL='redis://localhost:6379/1' +RS_STORAGE_URL='https://storage.kosmos.org' +RS_AKKOUNTS_DOMAIN=localhost WEBHOOKS_ALLOWED_IPS='10.1.1.23' diff --git a/docker-compose.yml b/docker-compose.yml index d465e34..ceaea19 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,6 +41,7 @@ services: LAUNCHY_DRY_RUN: true BROWSER: /dev/null PRIMARY_DOMAIN: kosmos.org + AKKOUNTS_DOMAIN: accounts.kosmos.org LDAP_HOST: ldap LDAP_PORT: 3389 LDAP_ADMIN_PASSWORD: passthebutter @@ -48,6 +49,7 @@ services: ACTIVE_STORAGE_PATH: /akkounts/tmp/attachments RS_REDIS_URL: redis://redis:6379/1 RS_STORAGE_URL: http://localhost:4567 + RS_AKKOUNTS_DOMAIN: localhost S3_ENABLED: false NOSTR_PUBLIC_KEY: bdd76ce2934b2f591f9fad2ebe9da18f20d2921de527494ba00eeaa0a0efadcf NOSTR_PRIVATE_KEY: 7c3ef7e448505f0615137af38569d01807d3b05b5005d5ecf8aaafcd40323cea diff --git a/spec/requests/webfinger_spec.rb b/spec/requests/webfinger_spec.rb index 69ef542..285c146 100644 --- a/spec/requests/webfinger_spec.rb +++ b/spec/requests/webfinger_spec.rb @@ -92,7 +92,7 @@ RSpec.describe "WebFinger", type: :request do expect(rs_link["href"]).to eql("#{Setting.rs_storage_url}/tony") oauth_url = rs_link["properties"]["http://tools.ietf.org/html/rfc6749#section-4.2"] - expect(oauth_url).to eql("http://accounts.kosmos.org/rs/oauth/tony") + expect(oauth_url).to eql("http://localhost/rs/oauth/tony") end it "returns CORS headers" do