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 22include .env
33DOCKER_COMPOSE = docker compose
44
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"
66
77# Targets
88.PHONY : build up down logs restart clean migrate-up migrate-down
@@ -26,10 +26,10 @@ clean:
2626 $(DOCKER_COMPOSE ) down -v
2727
2828migrate-up :
29- cd db/migrations && goose postgres $(URI ) up && cd ../..
29+ cd db/migrations && goose postgres $(DB_URI ) up && cd ../..
3030
3131migrate-down :
32- cd db/migrations && goose postgres $(URI ) down && cd ../..
32+ cd db/migrations && goose postgres $(DB_URI ) down && cd ../..
3333
3434# Help target
3535help :
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ func AuthUser(next echo.HandlerFunc) echo.HandlerFunc {
2525 "status" : "fail" ,
2626 })
2727 }
28+
2829 claims , ok := token .Claims .(jwt.MapClaims )
2930 if ! ok {
3031 return c .JSON (http .StatusUnauthorized , map [string ]interface {}{
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ server {
2222 gzip_proxied any;
2323 gzip_types text/plain text/css application/json application/javascript; # Access log for debugging access_log /var/log/nginx/access.log;
2424 # Serve static files from the application directory
25- location /api {
25+ location / {
2626
2727 # CORS
2828 if ( $request_method = 'OPTIONS' ) {
You can’t perform that action at this time.
0 commit comments