Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Rename localhost to 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JenswBE committed Jul 21, 2022
1 parent 0a1c686 commit 2e29e8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -31,7 +31,7 @@ Admin site for [go-commerce](https://github.com/JenswBE/go-commerce)
# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
# serve with hot reload at 127.0.0.1:3000
$ yarn dev
```

Expand Down
14 changes: 7 additions & 7 deletions nuxt.config.js
Expand Up @@ -3,7 +3,7 @@ import colors from 'vuetify/es5/util/colors'
export default {
server: {
port: 3000, // default: 3000
host: '0.0.0.0', // default: localhost
host: '127.0.0.1', // default: localhost
timing: false,
},

Expand Down Expand Up @@ -74,7 +74,7 @@ export default {

// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {
baseURL: 'http://localhost:8090/api',
baseURL: 'http://127.0.0.1:8090/api',
},

publicRuntimeConfig: {
Expand Down Expand Up @@ -113,20 +113,20 @@ export default {
login: {
url:
process.env.AUTH_PASSWORD_URL_LOGIN ||
'http://localhost:9001/realms/go-commerce/protocol/openid-connect/token',
'http://127.0.0.1:9001/realms/go-commerce/protocol/openid-connect/token',
method: 'post',
},
refresh: {
url:
process.env.AUTH_PASSWORD_URL_REFRESH ||
'http://localhost:9001/realms/go-commerce/protocol/openid-connect/token',
'http://127.0.0.1:9001/realms/go-commerce/protocol/openid-connect/token',
method: 'post',
},
user: false,
logout: {
url:
process.env.AUTH_PASSWORD_LOGOUT ||
'http://localhost:9001/realms/go-commerce/protocol/openid-connect/logout',
'http://127.0.0.1:9001/realms/go-commerce/protocol/openid-connect/logout',
method: 'get',
},
},
Expand All @@ -136,7 +136,7 @@ export default {
endpoints: {
configuration:
process.env.AUTH_URL_OIDC_CONFIG ||
'http://localhost:9001/realms/go-commerce/.well-known/openid-configuration',
'http://127.0.0.1:9001/realms/go-commerce/.well-known/openid-configuration',
},
responseType: 'code',
accessType: 'offline',
Expand All @@ -147,7 +147,7 @@ export default {
state: process.env.AUTH_STATE || 'UNIQUE_AND_NON_GUESSABLE',
logoutRedirectUri:
process.env.AUTH_URL_LOGOUT_REDIRECT ||
'http://localhost:3000/login',
'http://127.0.0.1:3000/login',
},
},
},
Expand Down

0 comments on commit 2e29e8a

Please sign in to comment.