File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 2
2
include .env
3
3
DOCKER_COMPOSE = docker compose
4
4
5
- DB_URI = "host=localhost port=${POSTGRES_PORT} user=${POSTGRES_USER} password=${POSTGRES_PASSWORD} dbname=${POSTGRES_DB} sslmode=disable"
5
+ DB_URI = "host=localhost port=6500 user=${POSTGRES_USER} password=${POSTGRES_PASSWORD} dbname=${POSTGRES_DB} sslmode=disable"
6
6
7
7
# Targets
8
8
.PHONY : build up down logs restart clean migrate-up migrate-down
@@ -26,10 +26,10 @@ clean:
26
26
$(DOCKER_COMPOSE ) down -v
27
27
28
28
migrate-up :
29
- cd db/migrations && goose postgres $(URI ) up && cd ../..
29
+ cd db/migrations && goose postgres $(DB_URI ) up && cd ../..
30
30
31
31
migrate-down :
32
- cd db/migrations && goose postgres $(URI ) down && cd ../..
32
+ cd db/migrations && goose postgres $(DB_URI ) down && cd ../..
33
33
34
34
# Help target
35
35
help :
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ func AuthUser(next echo.HandlerFunc) echo.HandlerFunc {
25
25
"status" : "fail" ,
26
26
})
27
27
}
28
+
28
29
claims , ok := token .Claims .(jwt.MapClaims )
29
30
if ! ok {
30
31
return c .JSON (http .StatusUnauthorized , map [string ]interface {}{
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ server {
22
22
gzip_proxied any;
23
23
gzip_types text/plain text/css application/json application/javascript; # Access log for debugging access_log /var/log/nginx/access.log;
24
24
# Serve static files from the application directory
25
- location /api {
25
+ location / {
26
26
27
27
# CORS
28
28
if ($request_method = 'OPTIONS' ) {
You can’t perform that action at this time.
0 commit comments