diff --git a/Makefile b/Makefile index 5df5221b..dc42857a 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,6 @@ dev: docker-compose -f compose/docker-compose_outside_docker.yml down docker-compose -f compose/docker-compose_outside_docker.yml up -d db docker-compose -f compose/docker-compose_outside_docker.yml up -d smtp - go run -race main.go --config=config/config_outside_docker.yaml & + go run -race main.go --config=config/config_dev.yaml & all: dockerized diff --git a/config/config.yaml.example b/config/config.yaml.example new file mode 100644 index 00000000..bec2096e --- /dev/null +++ b/config/config.yaml.example @@ -0,0 +1,17 @@ +url: "http://localhost:3000" +log_level: 2 +language: "it" + +keys: + cookie_store_key: "something-very-secret" + jwt_signing_key: "secret" + +orm: + connection: "oef:oef@tcp(db:3306)/oef_test" + options: "charset=utf8&parseTime=True&loc=Local" + automigrate: true + regenerate: false + +admin: + username: "admin" + password: "admin" diff --git a/config/config_dev.yaml.example b/config/config_dev.yaml.example new file mode 100644 index 00000000..3b34f954 --- /dev/null +++ b/config/config_dev.yaml.example @@ -0,0 +1,28 @@ +url: "http://localhost:3000" +log_level: 2 +language: "it" + +keys: + cookie_store_key: "something-very-secret" + jwt_signing_key: "secret" + +orm: + connection: "oef:oef@tcp(localhost:3307)/oef_test" + options: "charset=utf8&parseTime=True&loc=Local" + automigrate: true + regenerate: false + +admin: + username: "admin" + password: "admin" + +subscriber: + password: "subscribe" + +smtp: + host: "localhost" + port: 1025 + username: "" + password: "" + from: "no-reply@olimpiadi-economiaefinanza.it" + bcc: "bcc@fake.org" \ No newline at end of file