add dev and prod yml file and change the printer ip

pull/4/head
usama.jameel 2025-01-21 16:11:00 +05:00
parent dd5b3724b1
commit 038db5ee8d
4 changed files with 136 additions and 66 deletions

View File

@ -123,7 +123,7 @@ public class BarcodeService {
}
public void printLabel( BufferedImage bufferedImage ) throws Exception {
String ipAddr = "192.168.90.160";
String ipAddr = "172.16.53.32";
int port = 9100;
Connection connection = new TcpConnection( ipAddr, port );
connection.open();

View File

@ -0,0 +1,66 @@
spring:
resources:
chain:
cache: false
strategy:
content:
enabled: true
paths: /**
html-application-cache: true
enabled: true
cache:
period: 0
static-locations: classpath:/static/
thymeleaf:
check-template-location: true
cache: false
prefix: classpath:/templates/
uinddatasource:
jdbcUrl: jdbc:mysql://192.168.90.147:3306
username: utopia
password: Utopia01
driverClassName: com.mysql.cj.jdbc.Driver
logbackUrl: jdbc:mysql://192.168.90.147:3306/uind_logs?serverTimezone=Asia/Karachi
hikari:
maximum-pool-size: 5
pool-name: UINDMainPool
leak-detection-threshold: 2000
cosmosdatasource:
jdbcUrl: jdbc:mysql://192.168.90.147:3307
username: utopia
password: Utopia01
driverClassName: com.mysql.cj.jdbc.Driver
hikari:
maximum-pool-size: 5
pool-name: UINDCosmosPool
leak-detection-threshold: 2000
localdatasource:
jdbcUrl: jdbc:mysql://192.168.90.147:3306/cut_to_pack
username: utopia
password: Utopia01
driverClassName: com.mysql.cj.jdbc.Driver
hikari:
maximum-pool-size: 5
pool-name: CTPPool
leak-detection-threshold: 2000
server:
servlet:
context-path: /ctp
tomcat:
remoteip:
remote-ip-header: X-FORWARDED-FOR
max-parameter-count: 50000
port: 8080
compression:
enabled: true
mime-types: text/html, text/xml, text/plain, text/css, text/javascript, application/javascript, application/json, application/xml
min-response-size: 2KB
thymeleaf-layout-dialect:
version: 2.1.1
ctp:
cipher:
key: BC87A69BFCEC4A71E73B8DCCC4F14
seed-value : 7XYXo8Qq6D

View File

@ -0,0 +1,66 @@
spring:
resources:
chain:
cache: false
strategy:
content:
enabled: true
paths: /**
html-application-cache: true
enabled: true
cache:
period: 0
static-locations: classpath:/static/
thymeleaf:
check-template-location: true
cache: false
prefix: classpath:/templates/
uinddatasource:
jdbcUrl: jdbc:mysql://localhost:3306
username: root
password: Utopia01
driverClassName: com.mysql.cj.jdbc.Driver
logbackUrl: jdbc:mysql://localhost:3306/uind_logs?serverTimezone=Asia/Karachi
hikari:
maximum-pool-size: 5
pool-name: UINDMainPool
leak-detection-threshold: 2000
cosmosdatasource:
jdbcUrl: jdbc:mysql://localhost:3307
username: root
password: Utopia01
driverClassName: com.mysql.cj.jdbc.Driver
hikari:
maximum-pool-size: 5
pool-name: UINDCosmosPool
leak-detection-threshold: 2000
localdatasource:
jdbcUrl: jdbc:mysql://localhost:3306/cut_to_pack
username: root
password: Utopia01
driverClassName: com.mysql.cj.jdbc.Driver
hikari:
maximum-pool-size: 5
pool-name: CTPPool
leak-detection-threshold: 2000
server:
servlet:
context-path: /ctp
tomcat:
remoteip:
remote-ip-header: X-FORWARDED-FOR
max-parameter-count: 50000
port: 8080
compression:
enabled: true
mime-types: text/html, text/xml, text/plain, text/css, text/javascript, application/javascript, application/json, application/xml
min-response-size: 2KB
thymeleaf-layout-dialect:
version: 2.1.1
ctp:
cipher:
key: BC87A69BFCEC4A71E73B8DCCC4F14
seed-value : 7XYXo8Qq6D

View File

@ -1,70 +1,8 @@
application:
title: Cut To Pack Service
version: v1.0
name: application-dev
spring:
resources:
chain:
cache: false
strategy:
content:
enabled: true
paths: /**
html-application-cache: true
enabled: true
cache:
period: 0
static-locations: classpath:/static/
thymeleaf:
check-template-location: true
cache: false
prefix: classpath:/templates/
uinddatasource:
jdbcUrl: jdbc:mysql://192.168.90.108:3306/uind_vms
username: utopia
password: Utopia01
driverClassName: com.mysql.cj.jdbc.Driver
logbackUrl: jdbc:mysql://192.168.90.108:3306/uind_logs?serverTimezone=Asia/Karachi
hikari:
maximum-pool-size: 5
pool-name: UINDMainPool
leak-detection-threshold: 2000
cosmosdatasource:
jdbcUrl: jdbc:mysql://192.168.90.108:3307
username: utopia
password: Utopia01
driverClassName: com.mysql.cj.jdbc.Driver
hikari:
maximum-pool-size: 5
pool-name: UINDCosmosPool
leak-detection-threshold: 2000
localdatasource:
jdbcUrl: jdbc:mysql://192.168.90.108:3306/cut_to_pack
username: utopia
password: Utopia01
driverClassName: com.mysql.cj.jdbc.Driver
hikari:
maximum-pool-size: 5
pool-name: CTPPool
leak-detection-threshold: 2000
server:
servlet:
context-path: /ctp
tomcat:
remoteip:
remote-ip-header: X-FORWARDED-FOR
max-parameter-count: 50000
port: 8080
compression:
enabled: true
mime-types: text/html, text/xml, text/plain, text/css, text/javascript, application/javascript, application/json, application/xml
min-response-size: 2KB
thymeleaf-layout-dialect:
version: 2.1.1
ctp:
cipher:
key: BC87A69BFCEC4A71E73B8DCCC4F14
seed-value : 7XYXo8Qq6D
profiles:
active: dev