发布3dtiles

nginx 发布三维数据服务,地形数据

docker-compose.yaml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
version: "3"
services:
3dtiles:
image: nginx
container_name: 3dtiles
ports:
- 10000:80
volumes:
- ./conf.d:/etc/nginx/conf.d
- ./data:/data
restart: always
cesiumweb:
image: nginx
container_name: cesiumweb
ports:
- 10001:80
volumes:
- ./webconf.d:/etc/nginx/conf.d
- ./webdata:/data
restart: always

default.conf

1
2
3
4
5
6
7
8
9
10
11
12
server {
listen 80;
server_name localhost;

#access_log /var/log/nginx/host.access.log main;

location / {
root /data;
index index.html index.htm;
add_header 'Access-Control-Allow-Origin' '*';
}
}

web.conf

1
2
3
4
5
6
7
8
9
10
11
server {
listen 80;
server_name localhost;

#access_log /var/log/nginx/host.access.log main;

location / {
root /data;
index index.html index.htm;
}
}

http://mars3d.cn/dev/guide/data/server.html#_2-%E4%B8%89%E7%BB%B4%E6%95%B0%E6%8D%AE%E5%8F%91%E5%B8%83


发布3dtiles
https://zhaops-hub.github.io/2022/04/20/cesium/发布3dtiles/
作者
赵培胜
发布于
2022年4月20日
许可协议