mirror of
https://github.com/headporter81/specialsource-homepage-backend.git
synced 2026-08-08 15:41:11 +09:00
This commit is contained in:
@@ -32,9 +32,12 @@ jobs:
|
|||||||
docker stop ss-backend-container || true
|
docker stop ss-backend-container || true
|
||||||
docker rm ss-backend-container || true
|
docker rm ss-backend-container || true
|
||||||
|
|
||||||
# 3) 비어있는 18080 포트와 지정하신 app 폴더 경로를 연결하여 실행
|
# 3) [★핵심 변경] 환경 변수, 볼륨 마운트, 자동 재시작 옵션을 적용하여 컨테이너 실행
|
||||||
docker run -d \
|
docker run -d \
|
||||||
--name ss-backend-container \
|
--name ss-backend-container \
|
||||||
-p 18080:8080 \
|
-p 18080:8080 \
|
||||||
|
-e JASYPT_ENCRYPTOR_PASSWORD=${{ secrets.JASYPT_PASSWORD }} \
|
||||||
|
-e DB_URL=jdbc:postgresql://172.17.0.1:5435/mydb?sslmode=disable \
|
||||||
-v /volume1/docker/app/specialsource-backend/logs:/app/logs \
|
-v /volume1/docker/app/specialsource-backend/logs:/app/logs \
|
||||||
|
--restart always \
|
||||||
ss-backend-image
|
ss-backend-image
|
||||||
+2
-3
@@ -1,7 +1,6 @@
|
|||||||
|
#Thu May 28 11:00:03 KST 2026
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.4-bin.zip
|
||||||
networkTimeout=10000
|
|
||||||
validateDistributionUrl=true
|
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
@@ -1,33 +0,0 @@
|
|||||||
package company.specialsource.config;
|
|
||||||
|
|
||||||
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
|
|
||||||
import org.jasypt.encryption.StringEncryptor;
|
|
||||||
import org.jasypt.encryption.pbe.PooledPBEStringEncryptor;
|
|
||||||
import org.jasypt.encryption.pbe.config.SimpleStringPBEConfig;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
|
|
||||||
@Configuration
|
|
||||||
@EnableEncryptableProperties
|
|
||||||
public class JasyptConfig {
|
|
||||||
|
|
||||||
@Value("${jasypt.encryptor.password}")
|
|
||||||
private String password;
|
|
||||||
|
|
||||||
@Bean("jasyptStringEncryptor")
|
|
||||||
public StringEncryptor stringEncryptor() {
|
|
||||||
PooledPBEStringEncryptor encryptor = new PooledPBEStringEncryptor();
|
|
||||||
SimpleStringPBEConfig config = new SimpleStringPBEConfig();
|
|
||||||
config.setPassword(password); // 암호화 키 (절대 외부에 유출 금지!)
|
|
||||||
config.setAlgorithm("PBEWithMD5AndDES");
|
|
||||||
config.setKeyObtentionIterations("1000");
|
|
||||||
config.setPoolSize("1");
|
|
||||||
config.setProviderName("SunJCE");
|
|
||||||
config.setSaltGeneratorClassName("org.jasypt.salt.RandomSaltGenerator");
|
|
||||||
config.setIvGeneratorClassName("org.jasypt.iv.NoIvGenerator");
|
|
||||||
config.setStringOutputType("base64");
|
|
||||||
encryptor.setConfig(config);
|
|
||||||
return encryptor;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
spring:
|
spring:
|
||||||
datasource:
|
datasource:
|
||||||
url: jdbc:postgresql://192.168.0.215:5435/mydb
|
url: jdbc:postgresql://localhost:5435/mydb
|
||||||
username: headporter
|
username: headporter
|
||||||
password: ENC(Gg03NzjjcVOrFSXoBrPEusNgDNbYOPO4)
|
password: ENC(Gg03NzjjcVOrFSXoBrPEusNgDNbYOPO4)
|
||||||
driver-class-name: org.postgresql.Driver
|
driver-class-name: org.postgresql.Driver
|
||||||
@@ -16,6 +16,10 @@ spring:
|
|||||||
jasypt:
|
jasypt:
|
||||||
encryptor:
|
encryptor:
|
||||||
password: 81sungjin1015
|
password: 81sungjin1015
|
||||||
|
algorithm: PBEWithMD5AndDES
|
||||||
|
iv-generator-classname: org.jasypt.iv.NoIvGenerator
|
||||||
|
key-obtention-iterations: 1000
|
||||||
|
pool-size: 1
|
||||||
|
|
||||||
jwt:
|
jwt:
|
||||||
# 256비트 이상이어야 하므로 영문+숫자 (최소 32글자 이상)
|
# 256비트 이상이어야 하므로 영문+숫자 (최소 32글자 이상)
|
||||||
|
|||||||
Reference in New Issue
Block a user