1.0.0.805d1

Former-commit-id: d022edf4e3488792675189b634d5cea5c1f21fcb
Former-commit-id: 9074ac64260118a63208941c54b862b5cdca21d9
TSXN
wanggang 5 years ago
parent dac86505f5
commit 7c1f40278d

@ -99,4 +99,12 @@ nginx不使用docker物理机使用 docker compose port:port端口映射到
依赖mysql redis srs influxdb docker compose port:port端口映射到本地
服务usercenter iotcenter jobserver docker compose port:port端口映射到本地
服务usercenter iotcenter jobserver docker compose port:port端口映射到本地
##cockroachdb集群
cockroach start --insecure --host=localhost --http-port=8801
cockroach start --insecure --store=node2 --host=localhost --port=26258 --http-port=8802 --join=localhost:26257
cockroach start --insecure --store=node3 --host=localhost --port=26259 --http-port=8803 --join=localhost:26257
生成haproxy配置文件cockroach gen haproxy --insecure

@ -3,13 +3,15 @@
#生成环境ddl-auto设置为validate只在启动项目时只校验表结构
spring.jpa.hibernate.ddl-auto=create
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQL94Dialect
spring.jpa.show-sql=true
spring.datasource.username=root
spring.datasource.password=
#insecure
spring.datasource.url=jdbc:postgresql://localhost:26257/mytestj?sslmode=disable
#ssl
#certs.path=D:/1.0/ZHXY/labs/CockRoachDBTest/cockroach-v2.0.5.windows-6.2-amd64/certs/
#spring.datasource.url=jdbc:postgresql://localhost:26257/mytestj?ssl=true\
# &sslfactory=org.postgresql.ssl.jdbc4.LibPQFactory\
# &sslcert=${certs.path}client.root.crt\
# &sslkey=${certs.path}client.root.pk8\
# &sslrootcert=${certs.path}ca.crt
spring.jpa.show-sql=true
spring.datasource.username=root
spring.datasource.password=
# &sslrootcert=${certs.path}ca.crt

@ -1 +1,3 @@
cockroach-data
cockroach-data
node2
node3

@ -0,0 +1,23 @@
global
maxconn 4096
defaults
mode tcp
# Timeout values should be configured for your specific use.
# See: https://cbonte.github.io/haproxy-dconv/1.8/configuration.html#4-timeout%20connect
timeout connect 10s
timeout client 1m
timeout server 1m
# TCP keep-alive on client side. Server already enables them.
option clitcpka
listen psql
bind :26000
mode tcp
balance roundrobin
option httpchk GET /health?ready=1
server cockroach1 localhost:26257 check port 8801
server cockroach2 localhost:26258 check port 8802
server cockroach3 localhost:26259 check port 8803

@ -7,11 +7,6 @@ namespace Application.Models
[Display(Name = "场景")]
public class EditSceneModel : EditModel
{
[DataType("SelectList")]
[Display(Name = "机构")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public Guid? OrganId { get; set; }
[DataType("SelectList")]
[Display(Name = "节点")]
[Required(ErrorMessage = nameof(RequiredAttribute))]

@ -56,7 +56,7 @@
"register": "/UserCenter/Account/Register"
},
"ConnectionStrings": {
"postgresql": "User ID=root;Host=localhost;Port=26257;Database=iotcenter;CommandTimeout=120",
"postgresql": "User ID=root;Host=localhost;Port=26257;Database=iotcenter;CommandTimeout=600;TrustServerCertificate=true;",
"sqlite": "Data Source=iotcenter.db",
"mysql": "Server=localhost;Port=3306;Database=iotcenter;Uid=root;Pwd=root;",
"redis": "localhost:6379,allowAdmin=true",

@ -1,4 +1,4 @@
using System.Reflection;
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0.802d1")]
[assembly: AssemblyInformationalVersion("1.0.0.805d1")]
Loading…
Cancel
Save