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
* Add a Caddy guide
Basically a copy of the Nginx one, just for Caddy. Well tested as i use this setup myself
* Update CaddyProxy.md
* Merged caddy into the nginx page
* Small changes
---------
Co-authored-by: Lukas Rieger <[email protected]>
-NGINX is running on the same machine as BlueMaps integrated webserver. *(If that is not the case you'll need to
17
+
- You have your external webserver like [NGINX](https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/) or [Caddy](https://caddyserver.com/docs/install) already
18
+
installed.
19
+
-The external webserver is running on the same machine as BlueMaps integrated webserver. *(If that is not the case you'll need to
20
20
replace `localhost` with the correct ip in the examples below)*
21
21
- BlueMaps integrated webserver is running on port `8100`. *(Again, just replace `8100` with the actual port below)*
22
22
23
23
> **Info:**<br>
24
24
> If you want, you can tell the internal-webserver to only connect to one specific address like e.g. `127.0.0.1`,
25
-
> so it is no longer accessible from the outside (by default it just connects to all available interfaces):
25
+
> so it is no longer accessible from the outside (by default it just connects to all available interfaces):
26
26
> To do this, just open the `webserver.conf` and add the `ip: "127.0.0.1"` setting somewhere.
27
27
{: .info }
28
28
29
29
## BlueMap on a subdirectory of your website
30
-
If you have a normal website hosted with NGINX and want your map on `/map` (e.g `https://mydomain.com/map`) then
31
-
you can just add this to your NGINX configuration:
30
+
You have a normal website hosted on your webserver and want your map on `/map` (e.g `https://mydomain.com/map`)...
31
+
32
+
### NGINX
32
33
```nginx
33
34
server {
34
-
35
+
35
36
...
36
37
37
38
location /map/ {
@@ -40,9 +41,19 @@ server {
40
41
}
41
42
```
42
43
44
+
### Caddy
45
+
```
46
+
mydomain.com {
47
+
handle_path /map/* {
48
+
reverse_proxy 127.0.0.1:8100
49
+
}
50
+
}
51
+
```
52
+
43
53
## BlueMap on a subdomain
44
-
If you want BlueMap on a subdomain e.g. `https://map.mydomain.com/` then you'd add something like this to
45
-
your nginx config:
54
+
You want BlueMap on a subdomain e.g. `https://map.mydomain.com/`...
0 commit comments