fix: listen on 127.0.0.1
This commit is contained in:
parent
5c638d1920
commit
5e05ba2cbb
4 changed files with 11 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
AUTH_SECRET="auth_secret"
|
||||
AUTH_URL="http://localhost:3000"
|
||||
HOSTNAME=0.0.0.0
|
||||
HOSTNAME="127.0.0.1"
|
||||
DATABASE_URL="file:./dev.db"
|
||||
AUTH_AUTHENTIK_ISSUER="auth_issuer"
|
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
|||
build: yarn run build
|
||||
start: yarn cypress:start_server
|
||||
e2e: true
|
||||
wait-on: 'http://localhost:3000'
|
||||
wait-on: 'http://127.0.0.1:3000'
|
||||
|
||||
- name: Cypress run (component)
|
||||
uses: https://github.com/cypress-io/github-action@v6
|
||||
|
|
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -41,3 +41,8 @@ yarn-error.log*
|
|||
# typescript
|
||||
*.tsbuildinfo
|
||||
next-env.d.ts
|
||||
|
||||
# cypress
|
||||
cypress/videos
|
||||
cypress/screenshots
|
||||
cypress/coverage
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
describe('login', () => {
|
||||
it('loads', () => {
|
||||
cy.visit('http://localhost:3000/');
|
||||
cy.visit('http://127.0.0.1:3000/');
|
||||
|
||||
cy.getBySel('login-header').should('exist');
|
||||
});
|
||||
|
||||
it('shows login form', () => {
|
||||
cy.visit('http://localhost:3000/');
|
||||
cy.visit('http://127.0.0.1:3000/');
|
||||
|
||||
cy.getBySel('login-form').should('exist');
|
||||
cy.getBySel('email-input').should('exist');
|
||||
|
@ -15,13 +15,13 @@ describe('login', () => {
|
|||
});
|
||||
|
||||
it('shows sso button', () => {
|
||||
cy.visit('http://localhost:3000/');
|
||||
cy.visit('http://127.0.0.1:3000/');
|
||||
|
||||
cy.getBySel('sso-login-button_authentik').should('exist');
|
||||
});
|
||||
|
||||
it('allows login', () => {
|
||||
cy.visit('http://localhost:3000/');
|
||||
cy.visit('http://127.0.0.1:3000/');
|
||||
|
||||
cy.getBySel('email-input').type('test@example.com');
|
||||
cy.getBySel('password-input').type('password');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue