Skip to content

missxiaolin/micro-vue

Repository files navigation

micro-vue

前端监控平台

https://github.com/missxiaolin/msc-serve

微前端文档

https://micro-zoe.github.io/micro-app/docs.html#/

nginx 配置

server {
	listen       80;
	server_name  micro-adm.missxiaolin.com;

	set $uri_prefix "/";
	location / {
		root /Users/xiaolin/web/miss/micro-vue/mic-main/dist;
		index index.php index.html index.htm;
		# add_header Cache-Control;
		add_header Access-Control-Allow-Origin *;
		if ( $request_uri ~* ^.+.(js|css|jpg|png|gif|tif|dpg|jpeg|eot|svg|ttf|woff|json|mp4|rmvb|rm|wmv|avi|3gp)$ ){
			add_header Cache-Control max-age=7776000;
			add_header Access-Control-Allow-Origin *;
		}
		try_files $uri $uri/ /index.html;
  	}


	# 子应用child-vue3
	set $uri_prefix "/cha";
  	location /cha {
		alias /Users/xiaolin/web/miss/micro-vue/mic-vue/dist;
		add_header Access-Control-Allow-Origin *;
		if ( $request_uri ~* ^.+.(js|css|jpg|png|gif|tif|dpg|jpeg|eot|svg|ttf|woff|json|mp4|rmvb|rm|wmv|avi|3gp)$ ){
			add_header Cache-Control max-age=7776000;
			add_header Access-Control-Allow-Origin *;
		}
		try_files $uri $uri/ /index.html$is_args$args;
  	}

	# 子应用child-vue3-vie
	set $uri_prefix "/vie";
	location /vie {
		alias /Users/xiaolin/web/miss/micro-vue/mic-vie/dist;
		add_header Access-Control-Allow-Origin *;
		if ( $request_uri ~* ^.+.(js|css|jpg|png|gif|tif|dpg|jpeg|eot|svg|ttf|woff|json|mp4|rmvb|rm|wmv|avi|3gp)$ ){
			add_header Cache-Control max-age=7776000;
			add_header Access-Control-Allow-Origin *;
		}
		try_files $uri $uri/ /index.html$is_args$args;
	}

}

About

微前端 / low code 低代码搭建

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published