Skip to content

Commit 28bf1b1

Browse files
author
raccoon-mh
committed
version Back
1 parent 2c3c02d commit 28bf1b1

File tree

447 files changed

+181477
-7577
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

447 files changed

+181477
-7577
lines changed

.env.sample

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export API_ADDR=0.0.0.0
2+
export API_PORT=3000
3+
4+
export FRONT_ADDR=0.0.0.0
5+
export FRONT_PORT=3001
6+
7+
export DATABASE_USER=DATABASE_USER # Please CHANGE ME (REQUIRE)
8+
export DATABASE_PASS=DATABASE_PASS # Please CHANGE ME (REQUIRE)
9+
export DATABASE_HOST=DATABASE_HOST # Please CHANGE ME (REQUIRE)
10+
export DATABASE=DATABASE # Please CHANGE ME (REQUIRE)
11+
export DATABASE_URL=postgres://${DATABASE_USER}:${DATABASE_PASS}@${DATABASE_HOST}:5432/${DATABASE}
12+
13+
export FRONT_CSRF_USE=true
14+
export MCIAM_USE=true

.gitignore

+35-28
Original file line numberDiff line numberDiff line change
@@ -35,35 +35,39 @@ api/!.yarn/versions
3535

3636

3737
# front
38+
front/vendor/
39+
front/**/*.log
40+
front/**/*.sqlite
41+
front/.idea/
42+
front/bin/
43+
front/tmp/
44+
front/node_modules/
45+
front/.sass-cache/
46+
front/public/assets/
47+
front/.vscode/
48+
front/.grifter/
49+
front/.env
50+
front/**/.DS_Store
51+
front/*.pid
52+
front/coverage
53+
front/coverage.data
54+
front/.svn
55+
front/.console_history
56+
front/.sass-cache/*
57+
front/.jhw-cache/
58+
front/jhw.*
59+
front/*.sublime*
60+
front/dist/
61+
front/generated/
62+
front/.vendor/
63+
front/.pnp.*
64+
front/.yarn/*
65+
front/!.yarn/patches
66+
front/!.yarn/plugins
67+
front/!.yarn/releases
68+
front/!.yarn/sdks
69+
front/!.yarn/versions
3870

39-
## env
40-
front/.env*
41-
42-
## Logs
43-
front/logs
44-
front/*.log
45-
front/npm-debug.log*
46-
front/yarn-debug.log*
47-
front/yarn-error.log*
48-
front/pnpm-debug.log*
49-
front/lerna-debug.log*
50-
51-
front/node_modules
52-
front/dist
53-
front/dist-ssr
54-
55-
## Editor directories and files
56-
front/.vscode/*
57-
front/!.vscode/extensions.json
58-
front/.idea
59-
front/.DS_Store
60-
front/*.suo
61-
front/*.ntvs*
62-
front/*.njsproj
63-
front/*.sln
64-
front/*.sw?
65-
front/.iml
66-
front/.idea
6771

6872
# bin
6973
bin/mc-web-console-api
@@ -79,3 +83,6 @@ conf/serverinfo
7983

8084
# scripts
8185
scripts/.env
86+
87+
# root
88+
.env

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ mc-web-console은 내부적으로 mc-iam-manager & mc-infra-manager의 개방형
167167
- web_console_front
168168

169169
```bash
170-
$ cd mc-web-console/mc_web_console_front
170+
$ cd mc-web-console/front
171171
$ npm install
172172
$ yarn install
173173
$ buffalo build

api/.env.sample

-16
This file was deleted.

api/actions/app.go

-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66

77
"github.com/gobuffalo/buffalo"
88
"github.com/gobuffalo/buffalo-pop/v3/pop/popmw"
9-
"github.com/gobuffalo/envy"
109
contenttype "github.com/gobuffalo/mw-contenttype"
1110
"github.com/gobuffalo/x/sessions"
1211
"github.com/rs/cors"
@@ -19,8 +18,6 @@ import (
1918
"mc_web_console_api/models"
2019
)
2120

22-
var ENV = envy.Get("GO_ENV", "development")
23-
2421
var (
2522
app *buffalo.App
2623
appOnce sync.Once
@@ -30,7 +27,6 @@ var (
3027
func App() *buffalo.App {
3128
appOnce.Do(func() {
3229
app = buffalo.New(buffalo.Options{
33-
Env: ENV,
3430
SessionStore: sessions.Null{},
3531
PreWares: []buffalo.PreWare{
3632
cors.AllowAll().Handler, // disable require, when front proxy done.

api/database.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11
---
2-
development:
3-
url: {{envOr "DEV_DATABASE_URL" "postgres://postgres:[email protected]:5432/mc_web_console_api_dev?sslmode=disable"}}
4-
5-
test:
6-
url: {{envOr "TEST_DATABASE_URL" "postgres://postgres:[email protected]:5432/mc_web_console_api_test?sslmode=disable"}}
7-
8-
production:
9-
url: {{envOr "PROD_DATABASE_URL" "postgres://postgres:[email protected]:5432/mc_web_console_api_production?sslmode=disable"}}
2+
deploy:
3+
url: {{envOr "DATABASE_URL" "postgres://postgres:[email protected]:5432/mc_web_console_api_dev?sslmode=disable"}}

api/go.mod

+34-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module mc_web_console_api
22

3-
go 1.21.6
3+
go 1.22.0
44

55
toolchain go1.23.0
66

@@ -21,13 +21,14 @@ require (
2121
github.com/opentracing/opentracing-go v1.2.0
2222
github.com/rs/cors v1.11.0
2323
github.com/spf13/viper v1.19.0
24-
golang.org/x/crypto v0.26.0
24+
golang.org/x/crypto v0.27.0
2525
gopkg.in/yaml.v2 v2.4.0
2626
)
2727

2828
require (
2929
filippo.io/edwards25519 v1.1.0 // indirect
3030
github.com/BurntSushi/toml v1.4.0 // indirect
31+
github.com/Masterminds/semver v1.5.0 // indirect
3132
github.com/Masterminds/semver/v3 v3.2.1 // indirect
3233
github.com/aymerick/douceur v0.2.0 // indirect
3334
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
@@ -37,16 +38,29 @@ require (
3738
github.com/felixge/httpsnoop v1.0.4 // indirect
3839
github.com/fsnotify/fsnotify v1.7.0 // indirect
3940
github.com/go-sql-driver/mysql v1.8.1 // indirect
41+
github.com/gobuffalo/buffalo-plugins v1.15.0 // indirect
4042
github.com/gobuffalo/events v1.4.3 // indirect
4143
github.com/gobuffalo/fizz v1.14.4 // indirect
4244
github.com/gobuffalo/flect v1.0.2 // indirect
45+
github.com/gobuffalo/genny v0.6.0 // indirect
46+
github.com/gobuffalo/gitgen v0.0.0-20190315122116-cc086187d211 // indirect
4347
github.com/gobuffalo/github_flavored_markdown v1.1.4 // indirect
48+
github.com/gobuffalo/gogen v0.2.0 // indirect
4449
github.com/gobuffalo/helpers v0.6.7 // indirect
50+
github.com/gobuffalo/here v0.6.7 // indirect
51+
github.com/gobuffalo/licenser v1.4.0 // indirect
4552
github.com/gobuffalo/logger v1.0.7 // indirect
53+
github.com/gobuffalo/mapi v1.2.1 // indirect
4654
github.com/gobuffalo/meta v0.3.3 // indirect
4755
github.com/gobuffalo/nulls v0.4.2 // indirect
56+
github.com/gobuffalo/packd v1.0.2 // indirect
57+
github.com/gobuffalo/packr/v2 v2.8.3 // indirect
58+
github.com/gobuffalo/plush v3.8.3+incompatible // indirect
4859
github.com/gobuffalo/plush/v4 v4.1.20 // indirect
60+
github.com/gobuffalo/plushgen v0.1.2 // indirect
4961
github.com/gobuffalo/refresh v1.13.3 // indirect
62+
github.com/gobuffalo/release v1.15.0 // indirect
63+
github.com/gobuffalo/shoulders v1.3.0 // indirect
5064
github.com/gobuffalo/tags/v3 v3.1.4 // indirect
5165
github.com/goccy/go-json v0.10.3 // indirect
5266
github.com/gorilla/css v1.0.1 // indirect
@@ -66,6 +80,7 @@ require (
6680
github.com/jackc/pgx/v4 v4.18.3 // indirect
6781
github.com/jmoiron/sqlx v1.3.5 // indirect
6882
github.com/joho/godotenv v1.5.1 // indirect
83+
github.com/karrick/godirwalk v1.17.0 // indirect
6984
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
7085
github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
7186
github.com/lestrrat-go/blackmagic v1.0.2 // indirect
@@ -75,39 +90,44 @@ require (
7590
github.com/lestrrat-go/option v1.0.1 // indirect
7691
github.com/luna-duclos/instrumentedsql v1.1.3 // indirect
7792
github.com/magiconair/properties v1.8.7 // indirect
93+
github.com/markbates/deplist v1.3.0 // indirect
94+
github.com/markbates/errx v1.1.0 // indirect
95+
github.com/markbates/oncer v1.0.0 // indirect
96+
github.com/markbates/safe v1.1.0 // indirect
7897
github.com/mattn/go-colorable v0.1.13 // indirect
7998
github.com/mattn/go-isatty v0.0.20 // indirect
8099
github.com/mattn/go-sqlite3 v2.0.3+incompatible // indirect
81-
github.com/microcosm-cc/bluemonday v1.0.26 // indirect
100+
github.com/microcosm-cc/bluemonday v1.0.27 // indirect
82101
github.com/mitchellh/go-homedir v1.1.0 // indirect
83102
github.com/mitchellh/mapstructure v1.5.0 // indirect
84103
github.com/monoculum/formam v3.5.5+incompatible // indirect
85104
github.com/nicksnyder/go-i18n v1.10.3 // indirect
86105
github.com/pelletier/go-toml v1.9.5 // indirect
87-
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
106+
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
88107
github.com/pkg/errors v0.9.1 // indirect
89108
github.com/rogpeppe/go-internal v1.12.0 // indirect
90-
github.com/sagikazarmark/locafero v0.4.0 // indirect
109+
github.com/sagikazarmark/locafero v0.6.0 // indirect
91110
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
92111
github.com/sergi/go-diff v1.3.1 // indirect
93112
github.com/sirupsen/logrus v1.9.3 // indirect
94113
github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d // indirect
95114
github.com/sourcegraph/conc v0.3.0 // indirect
96115
github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e // indirect
97116
github.com/spf13/afero v1.11.0 // indirect
98-
github.com/spf13/cast v1.6.0 // indirect
117+
github.com/spf13/cast v1.7.0 // indirect
99118
github.com/spf13/cobra v1.8.1 // indirect
100119
github.com/spf13/pflag v1.0.5 // indirect
101120
github.com/subosito/gotenv v1.6.0 // indirect
102-
go.uber.org/atomic v1.9.0 // indirect
103-
go.uber.org/multierr v1.9.0 // indirect
104-
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
105-
golang.org/x/mod v0.18.0 // indirect
106-
golang.org/x/net v0.26.0 // indirect
121+
go.uber.org/atomic v1.11.0 // indirect
122+
go.uber.org/multierr v1.11.0 // indirect
123+
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
124+
golang.org/x/mod v0.21.0 // indirect
125+
golang.org/x/net v0.29.0 // indirect
107126
golang.org/x/sync v0.8.0 // indirect
108-
golang.org/x/sys v0.23.0 // indirect
109-
golang.org/x/term v0.23.0 // indirect
110-
golang.org/x/text v0.17.0 // indirect
127+
golang.org/x/sys v0.25.0 // indirect
128+
golang.org/x/term v0.24.0 // indirect
129+
golang.org/x/text v0.18.0 // indirect
130+
golang.org/x/tools v0.25.0 // indirect
111131
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
112132
gopkg.in/ini.v1 v1.67.0 // indirect
113133
gopkg.in/yaml.v3 v3.0.1 // indirect

0 commit comments

Comments
 (0)