You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -55,7 +55,7 @@ You can also visit https://nodejs.org.
55
55
56
56
### Local dev domains (optional)
57
57
58
-
To use local `.dev` domains, you need to configure your network or browser to use hotel's proxy auto-config file or you can skip this step for the moment and go directly to http://localhost:2000
58
+
To use local `.localhost` domains, you need to configure your network or browser to use hotel's proxy auto-config file or you can skip this step for the moment and go directly to http://localhost:2000
Go to [localhost:2000](http://localhost:2000) or [hotel.dev](http://hotel.dev).
71
+
Go to [localhost:2000](http://localhost:2000) or [hotel.localhost](http://hotel.localhost).
72
72
73
73
Alternatively you can directly go to
74
74
@@ -78,13 +78,13 @@ http://localhost:2000/two
78
78
```
79
79
80
80
```
81
-
http://one.dev
82
-
http://two.dev
81
+
http://one.localhost
82
+
http://two.localhost
83
83
```
84
84
85
85
```
86
-
https://one.dev
87
-
https://two.dev
86
+
https://one.localhost
87
+
https://two.localhost
88
88
```
89
89
90
90
__Tip__ you can also use `hotel run <cmd>` to start your server in the terminal and get a temporary local domain.
@@ -120,8 +120,8 @@ Add your remote servers
120
120
You can now access them using
121
121
122
122
```sh
123
-
http://aliased-address.dev# will proxy requests to http://192.168.1.12:1337
124
-
http://aliased-domain.dev# will proxy requests to http://google.com
123
+
http://aliased-address.localhost# will proxy requests to http://192.168.1.12:1337
124
+
http://aliased-domain.localhost# will proxy requests to http://google.com
125
125
```
126
126
127
127
## CLI usage and options
@@ -172,7 +172,7 @@ hotel add "cmd -p %PORT%" # Windows
172
172
173
173
## Fallback URL
174
174
175
-
If you're offline or can't configure your browser to use `.dev` domains, you can __always__ access your local servers by going to [localhost:2000](http://localhost:2000).
175
+
If you're offline or can't configure your browser to use `.localhost` domains, you can __always__ access your local servers by going to [localhost:2000](http://localhost:2000).
176
176
177
177
## Configurations, logs and certificates
178
178
@@ -194,7 +194,9 @@ By default, `hotel` uses the following configuration values:
194
194
"port":2000,
195
195
"host":'127.0.0.1',
196
196
"timeout":5000,
197
-
"tld":'dev',
197
+
// Change this if you want to use another tld than .localhost
198
+
"tld":'dev',
199
+
// If you're behind a corporate proxy, replace this with your network proxy IP (example: "1.2.3.4:5000")
198
200
"proxy":false
199
201
}
200
202
```
@@ -236,7 +238,7 @@ hotel add --http-proxy-env 'server-cmd'
236
238
hotel add --change-origin 'https://jsonplaceholder.typicode.com'
237
239
```
238
240
239
-
_When proxying to a `https` server, you may get an error because your local `.dev` domain doesn't match the host defined in the server certificate. With this flag, `host` header is changed to match the target URL._
241
+
_When proxying to a `https` server, you may get an error because your local `.localhost` domain doesn't match the host defined in the server certificate. With this flag, `host` header is changed to match the target URL._
Copy file name to clipboardExpand all lines: docs/README.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
-
# Configuring local .dev domains
1
+
# Configuring local .localhost domains
2
2
3
3
_This step is totally optional and you can use hotel without it._
4
4
5
-
To use local `.dev` domain, you need to configure your browser or network to use hotel's proxy auto-config file which is available at `http://localhost:2000/proxy.pac`[[view file content](../src/daemon/views/proxy-pac.pug)].
5
+
To use local `.localhost` domain, you need to configure your browser or network to use hotel's proxy auto-config file which is available at `http://localhost:2000/proxy.pac`[[view file content](../src/daemon/views/proxy-pac.pug)].
6
6
7
-
__Important__ hotel MUST be running before configuring your network or browser so that `http://localhost:2000/proxy.pac` is available. If hotel is started after and you can't access `.dev` domains, simply disable/enable network or restart browser.
7
+
__Important__ hotel MUST be running before configuring your network or browser so that `http://localhost:2000/proxy.pac` is available. If hotel is started after and you can't access `.localhost` domains, simply disable/enable network or restart browser.
8
8
9
9
## Configuring another .tld
10
10
11
-
You can edit `~/.hotel/conf.json` to use another Top-level Domain than `.dev`.
11
+
You can edit `~/.hotel/conf.json` to use another Top-level Domain than `.localhost`.
0 commit comments