feat - 전반적인 기능 추가
SpecialSource Backend CI/CD / build-and-deploy (push) Successful in 1m43s

This commit is contained in:
sungjin.choi
2026-05-28 14:32:11 +09:00
parent a7077fc693
commit 1d42aacd6e
4 changed files with 11 additions and 38 deletions
+4 -1
View File
@@ -32,9 +32,12 @@ jobs:
docker stop ss-backend-container || true
docker rm ss-backend-container || true
# 3) 비어있는 18080 포트와 지정하신 app 폴더 경로를 연결하여 실행
# 3) [★핵심 변경] 환경 변수, 볼륨 마운트, 자동 재시작 옵션을 적용하여 컨테이너 실행
docker run -d \
--name ss-backend-container \
-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 \
--restart always \
ss-backend-image
+2 -3
View File
@@ -1,7 +1,6 @@
#Thu May 28 11:00:03 KST 2026
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
networkTimeout=10000
validateDistributionUrl=true
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
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;
}
}
+5 -1
View File
@@ -1,6 +1,6 @@
spring:
datasource:
url: jdbc:postgresql://192.168.0.215:5435/mydb
url: jdbc:postgresql://localhost:5435/mydb
username: headporter
password: ENC(Gg03NzjjcVOrFSXoBrPEusNgDNbYOPO4)
driver-class-name: org.postgresql.Driver
@@ -16,6 +16,10 @@ spring:
jasypt:
encryptor:
password: 81sungjin1015
algorithm: PBEWithMD5AndDES
iv-generator-classname: org.jasypt.iv.NoIvGenerator
key-obtention-iterations: 1000
pool-size: 1
jwt:
# 256비트 이상이어야 하므로 영문+숫자 (최소 32글자 이상)