Skip to content

Commit

Permalink
rm redundant cfg value
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniil_Gorpinchenko authored and Daniil_Gorpinchenko committed Sep 27, 2024
1 parent 59882e7 commit f77c3b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ jobs:
echo -e "[Service]\n\
Environment=\"JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }}\"\n\
Environment=\"EMAIL_PASSWORD=${{ secrets.EMAIL_PASSWORD }}\"\n\
Environment=\"DB_USER=${{ secrets.DB_USER }}\"\n\
Environment=\"DB_PASSWORD=${{ secrets.DB_PASSWORD }}\"" > override.conf
Environment=\"DB_USER=${{ secrets.DB_USER }}\"" > override.conf
sudo mv override.conf /etc/systemd/system/stage.csr.service.d/override.conf
sudo chown root:root /etc/systemd/system/stage.csr.service.d/override.conf
sudo chmod 644 /etc/systemd/system/stage.csr.service.d/override.conf
Expand Down
4 changes: 1 addition & 3 deletions internal/config/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ func getDefaultConfig() *AppConfig {
DB: DB{
Host: "localhost",
User: "csr",
Password: "password",
Database: "csr",
Database: "stage_csr",
},
Password: Password{
Length: 8,
Expand All @@ -128,7 +127,6 @@ func bindEnvVars() {
viper.BindEnv("jwtsecretkey", "JWT_SECRET_KEY")
viper.BindEnv("email.password", "EMAIL_PASSWORD")
viper.BindEnv("db.user", "DB_USER")
viper.BindEnv("db.password", "DB_PASSWORD")

viper.AutomaticEnv()
}

0 comments on commit f77c3b1

Please sign in to comment.