DESKTOP-3E973C2\Admin 4 anos atrás
pai
commit
9b7b296cf0

+ 12 - 0
cabname/Dockerfile

@@ -0,0 +1,12 @@
+FROM golang:1.9.2
+RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
+RUN echo 'Asia/Shanghai' > /etc/timezone
+
+COPY cabname /go/bin/
+RUN chmod +x /go/bin/cabname
+COPY config.yaml /go/bin/config.yaml
+WORKDIR /go/bin
+
+CMD ["/go/bin/cabname"]
+EXPOSE 7890
+EXPOSE 7891

BIN
cabname/cabname


+ 34 - 0
cabname/config.yaml

@@ -0,0 +1,34 @@
+name: cabname
+port: 7890
+httpport: 7891
+server_table_name: 'tServerTable'
+
+apps:
+    gsdk: 'GSDK_'
+    gateway: 'Gateway_'
+    login_test: '登陆服务器'
+nacos:
+    namespaceid: '4cf48e53-dab4-410f-bab3-641c8bfdc2ab'
+    ip: 'mse-b7dbfee2-nacos-ans.mse.aliyuncs.com'
+    port: 8848
+
+center:
+    ip: 10.40.115.152 
+    port: 6501
+    name: YunfanNameServer
+    version: 9
+    timeout: 10
+    password:
+    tcp_read_buf_size: 8388608
+    tcp_write_buf_size: 8388608
+    connect_retry_count: 3
+
+maindb:
+    host: rm-2zeoq66t8vtn3v0qg.mysql.rds.aliyuncs.com
+    port: '3306'
+    dbname: user_db
+    user: tool_user
+    pass: ')KJPjDJn$BDgacev'
+    charset: utf8mb4
+    max_conn: 10
+

+ 8 - 0
cabname/push.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+release=$1
+
+[ ! -n "$release" ] && exit 1
+
+docker build -t registry-vpc.cn-beijing.aliyuncs.com/xinyue/cabname:${release} .
+docker push registry-vpc.cn-beijing.aliyuncs.com/xinyue/cabname:${release}

BIN
consoleapi/businessweb


+ 11 - 0
ipip/Dockerfile

@@ -0,0 +1,11 @@
+FROM golang:1.9.2
+RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
+RUN echo 'Asia/Shanghai' > /etc/timezone
+
+COPY ipip /go/bin/
+RUN chmod +x /go/bin/ipip
+COPY config.yaml /go/bin/config.yaml
+WORKDIR /go/bin
+
+CMD ["/go/bin/ipip"]
+EXPOSE 9876

+ 15 - 0
ipip/config.yaml

@@ -0,0 +1,15 @@
+mode: tcp
+port: 9876
+
+# 本地应用服务配置
+dbtype: all
+update_interval: 3600
+ip:
+    path: 'ipip.ipdb'
+    url: 'https://file.weile.com/dict/ipip.ipdb'
+    current_version: ''
+
+phone:
+    path: 'phonearea.txt'
+    url: 'https://file.weile.com/dict/phonearea.txt'
+    current_version: ''

BIN
ipip/ipip


+ 8 - 0
ipip/push.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+release=$1
+
+[ ! -n "$release" ] && exit 1
+
+docker build -t registry-vpc.cn-beijing.aliyuncs.com/xinyue/ipip:${release} .
+docker push registry-vpc.cn-beijing.aliyuncs.com/xinyue/ipip:${release}

+ 1 - 1
logonsvr/login-app-jl/iplist.yaml

@@ -1,7 +1,7 @@
 safeMode : true
 ipGroupUrl : https://ds-system.xinyueyouxi.com/api/ipGroup?id=%d&format=json
 testDistribHall :   #  分配测试,只有心悦才有
-  ip : 47.94.229.194                
+  ip : 47.94.229.194
   port : 9999                       
 vGameHallSvrList :
   4701 :

+ 1 - 0
share-v2/sharesrv2/Dockerfile

@@ -4,3 +4,4 @@ COPY agollo.json /go/bin
 RUN chmod +x /go/bin/sharesrv2
 WORKDIR /go/bin/
 CMD ["/go/bin/sharesrv2"]
+EXPOSE 9092

BIN
share-v2/sharesrv2/sharesrv2


+ 11 - 9
versioncheck-nginx/conf.d/versioncheck-nginx.conf

@@ -14,21 +14,23 @@ server {
     add_header Access-Control-Allow-Headers X-Requested-With;
     add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
 
-    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-    proxy_set_header Remote_addr $remote_addr;
-    proxy_set_header X-Real_IP $remote_addr;
-    proxy_set_header Host $host;
-    proxy_redirect off;
-    proxy_http_version 1.1;
-
+    
     charset utf-8;
 
 
     server_name _;
 
     location / {
-        
-        proxy_pass http://versioncheck-svc-nei:8080;
+      add_header Access-Control-Allow-Origin *;
+      add_header Access-Control-Allow-Headers X-Requested-With;
+      add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
+      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+      proxy_set_header Remote_addr $remote_addr;
+      proxy_set_header X-Real_IP $remote_addr;
+      proxy_set_header Host $host;
+      proxy_redirect off;
+      proxy_http_version 1.1;
+      proxy_pass http://versioncheck-svc-nei:8080;
     }
     
     location /favicon.ico {

BIN
versioncheck/versioncheck


BIN
wapi/wapi