Skip to content

Commit 4811c58

Browse files
authored
Merge pull request #61 from Xenomorph07/master
2
2 parents b3c86cf + 0dc4584 commit 4811c58

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
include .env
33
DOCKER_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

2828
migrate-up:
29-
cd db/migrations && goose postgres $(URI) up && cd ../..
29+
cd db/migrations && goose postgres $(DB_URI) up && cd ../..
3030

3131
migrate-down:
32-
cd db/migrations && goose postgres $(URI) down && cd ../..
32+
cd db/migrations && goose postgres $(DB_URI) down && cd ../..
3333

3434
# Help target
3535
help:

internal/middleware/check_user.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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{}{

nginx/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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') {

0 commit comments

Comments
 (0)