Commit f79ac3f4 by wutong

Init Nginx

parent e0976432
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="data-nginx" />
</profile>
</annotationProcessing>
<bytecodeTargetLevel target="8">
<module name="data-nginx" target="1.5" />
</bytecodeTargetLevel>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" native2AsciiForPropertiesFiles="true" defaultCharsetForPropertiesFiles="UTF-8" addBOMForNewFiles="with NO BOM">
<file url="PROJECT" charset="UTF-8" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/data-nginx/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/DataCenterCommon.iml" filepath="$PROJECT_DIR$/.idea/DataCenterCommon.iml" />
<module fileurl="file://$PROJECT_DIR$/data-nginx/data-nginx.iml" filepath="$PROJECT_DIR$/data-nginx/data-nginx.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
\ No newline at end of file
......@@ -2,4 +2,4 @@ FROM nginx:1.15-alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY . /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
# 数据中心docker项目统一nginx
> 为了微服务网址的统一性,特别设置次项目作为内网外网访问微服务各个项目的统一地址,所有docker项目内网地址的转发均由此地址转出
## nginx外网地址(BLT):http://
## nginx内网地址(BLT):http://
## 项目内网地址
### skums:http://10.0.8.13:8000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>开发文档</title>
<link href="https://cdn.bootcss.com/skeleton/2.0.4/skeleton.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/jquery/3.0.0-alpha1/jquery.js"></script>
<script src="https://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.js"></script>
<script src="https://cdn.bootcss.com/marked/0.6.0/marked.js"></script>
<script>
window.searchMap = location.search.substr(1).split('&').reduce(function (r, it) {
var them = it.split('=');
r[them[0]] = them[1];
return r;
}, {});
$.ajaxSetup({
async: false
});
$(document).ready(function () {
var locationUrl = 'http://' + document.domain + '/index.html?md=index.md'
var cookie = $.cookie('token');
if (cookie && cookie != 'null') {
return;
}
var token = getParam('token');
if (token) {
$.ajax({
url: 'http://sso.bailuntec.com/GetTokenValidation',
headers: {
Authorization: token
},
type: "get",
beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', token);
},
success: function () {
$.cookie('token', token, {
expires: 1
});
window.location.replace(locationUrl);
},
error: function (error) {
console.log(error);
window.location.replace('http://sso.bailuntec.com/?returnUrl=http://' + document.domain);
}
});
} else {
$.cookie('token', token, {
expires: 1
});
window.location.replace('http://sso.bailuntec.com/?returnUrl=http://' + document.domain);
}
});
/**
* 获取指定的URL参数值
* URL:http://www.quwan.com/index?name=tyler
* 参数:paramName URL参数
* 调用方法:getParam("name")
* 返回值:tyler
*/
function getParam(paramName) {
paramValue = "", isFound = !1;
if (this.location.search.indexOf("?") == 0 && this.location.search.indexOf("=") > 1) {
arrSource = unescape(this.location.search).substring(1, this.location.search.length).split("&"), i = 0;
while (i < arrSource.length && !isFound) arrSource[i].indexOf("=") > 0 && arrSource[i].split("=")[0].toLowerCase() ==
paramName.toLowerCase() && (paramValue = arrSource[i].split("=")[1], isFound = !0), i++
}
return paramValue == "" && (paramValue = null), paramValue
}
</script>
</head>
<body>
<div id="content"></div>
<script>
$.get(searchMap.md, function (response, status, xhr) {
$("#content").html(marked(response));
});
</script>
</body>
</html>
\ No newline at end of file
# 百伦
---
#### 百伦skums:
##### Category:http://doc.bailuntec.com:6001/swagger/index.html
##### Product:http://doc.bailuntec.com:6002/swagger/index.html
##### Sku: http://doc.bailuntec.com:6003/swagger/index.html
##### Task: http://doc.bailuntec.com:6004/swagger/index.html
---
#### 百伦各个子项目入口
##### 自动周转系统:http://aims.bailuntec.com
##### 数据中心系统:http://data.bailuntec.com
##### 采购系统:http://purchase.bailuntec.com
##### 刊登系统:http://pps.bailuntec.com
##### 旧刊登系统:http://bltpro.bailuntec.com
##### 产品库:http://pro.bailuntec.com
##### 开发系统:http://pds.bailuntec.com
##### oa系统:http://www.bailuntec.com
##### 执行力系统:http://todo.bailuntec.com
##### 账号系统:http://pams.bailuntec.com
##### 大数据系统:http://ana.bailuntec.com
##### skums系统:http://skums.bailuntec.com
##### wms系统:http://wms.bailuntec.com
##### oms系统:http://oms.bailuntec.com
##### 分销系统:http://sale.bailuntec.com
......@@ -59,19 +59,19 @@ http {
application/octet-stream
text/x-cross-domain-policy;
upstream listingJobs{
server 172.31.255.79:6032;
upstream zookeeper {
server 172.31.255.174;
}
server {
listen 80;
server_name www.bailuntec.com;
location / {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://saleWeb;
server_name 172.31.255.174;
location /BaseApi/common {
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://172.31.255.174;
}
location = /50x.html {
root html;
......
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.bailuntec</groupId>
<artifactId>data-nginx</artifactId>
<version>1.0-SNAPSHOT</version>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=".md" mimeType="application/octet-stream" />
</staticContent>
</system.webServer>
</configuration>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment