Skip to content

Commit da9c89a

Browse files
committed
use lo.nkmiusercontent.com
Closes #3
1 parent 9cbbddf commit da9c89a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ cd example/
1919
$ foreman start
2020
```
2121

22-
http://ngx-auth-test.127.0.0.1.xip.io:18080/
22+
http://ngx-auth-test.lo.nkmiusercontent.com:18080/
2323

2424
(make sure to have nginx on your PATH)
2525

example/Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
nginx: nginx -c `pwd`/nginx.conf
2-
adapter: bundle exec env RACK_ENV=development NGX_OMNIAUTH_HOST=http://ngx-auth.127.0.0.1.xip.io:18080 rackup -p 18081 -o 127.0.0.1 ../config.ru
2+
adapter: bundle exec env RACK_ENV=development NGX_OMNIAUTH_HOST=http://ngx-auth.lo.nkmiusercontent.com:18080 rackup -p 18081 -o 127.0.0.1 ../config.ru
33
app: bundle exec ruby test_backend.rb -p 18082 -o 127.0.0.1

example/nginx-site.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ upstream auth_adapter {
66
}
77
server {
88
listen 127.0.0.1:18080;
9-
server_name ngx-auth.127.0.0.1.xip.io;
9+
server_name ngx-auth.lo.nkmiusercontent.com;
1010

1111
location / {
1212
proxy_pass http://auth_adapter;
@@ -20,7 +20,7 @@ upstream app {
2020
}
2121
server {
2222
listen 127.0.0.1:18080;
23-
server_name ngx-auth-test.127.0.0.1.xip.io;
23+
server_name ngx-auth-test.lo.nkmiusercontent.com;
2424

2525
# Restricted area
2626
location / {

spec/integration_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
adapter_pid = spawn(
2323
'docker', 'run',
2424
'--env', 'RACK_ENV=test',
25-
'--env', 'NGX_OMNIAUTH_HOST=http://ngx-auth.127.0.0.1.xip.io:18080',
25+
'--env', 'NGX_OMNIAUTH_HOST=http://ngx-auth.lo.nkmiusercontent.com:18080',
2626
'-p', '18081:8080',
2727
ENV['ADAPTER_DOCKER'],
2828
out: spec_log, err: spec_log
2929
)
3030
else
31-
adapter_pid = spawn({'NGX_OMNIAUTH_HOST' => 'http://ngx-auth.127.0.0.1.xip.io:18080'}, 'rackup', '-p', '18081', '-o', '127.0.0.1', File.join(__dir__, '..', 'config.ru'), out: spec_log, err: spec_log)
31+
adapter_pid = spawn({'NGX_OMNIAUTH_HOST' => 'http://ngx-auth.lo.nkmiusercontent.com:18080'}, 'rackup', '-p', '18081', '-o', '127.0.0.1', File.join(__dir__, '..', 'config.ru'), out: spec_log, err: spec_log)
3232
end
3333

3434
100.times do
@@ -68,6 +68,6 @@
6868
let(:agent) { Mechanize.new }
6969

7070
it "can log in" do
71-
expect(agent.get('http://ngx-auth-test.127.0.0.1.xip.io:18080/').body).to include('"42"')
71+
expect(agent.get('http://ngx-auth-test.lo.nkmiusercontent.com:18080/').body).to include('"42"')
7272
end
7373
end

0 commit comments

Comments
 (0)