Skip to content

Commit b0d0807

Browse files
authored
Merge pull request #74 from gsainfoteam/develop
Production 서버 배포 준비
2 parents aaed8d6 + 31cac31 commit b0d0807

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

deploy/nginx-dev.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ http {
99

1010
server {
1111
listen 80;
12-
server_name api.pot-g.gistory.me;
12+
server_name api.dev.pot-g.gistory.me;
1313

1414
location / {
1515
return 301 https://$host$request_uri;
@@ -19,11 +19,11 @@ http {
1919
# HTTPS 설정
2020
server {
2121
listen 443 ssl;
22-
server_name api.pot-g.gistory.me;
22+
server_name api.dev.pot-g.gistory.me;
2323

2424
# Let's Encrypt SSL 인증서
25-
ssl_certificate /etc/letsencrypt/live/api.pot-g.gistory.me/fullchain.pem;
26-
ssl_certificate_key /etc/letsencrypt/live/api.pot-g.gistory.me/privkey.pem;
25+
ssl_certificate /etc/letsencrypt/live/api.dev.pot-g.gistory.me/fullchain.pem;
26+
ssl_certificate_key /etc/letsencrypt/live/api.dev.pot-g.gistory.me/privkey.pem;
2727

2828
# SSL 설정
2929
ssl_protocols TLSv1.2 TLSv1.3;

drizzle/schema/schema.sql

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ CREATE TABLE "user_pot_room"
1414
"pot_room_fk" uuid NOT NULL,
1515
"user_fk" uuid NOT NULL,
1616
"is_host" boolean NOT NULL DEFAULT FALSE,
17-
"is_archived" boolean NOT NULL DEFAULT FALSE,
17+
"is_archived" boolean NOT NULL DEFAULT FALSE
1818
);
1919

2020
CREATE TABLE "pot_room"
@@ -57,7 +57,7 @@ CREATE TABLE "pot_event" (
5757
"timestamp" timestamp with time zone NOT NULL,
5858
"id" smallint NOT NULL DEFAULT nextval('pot_event_id'),
5959
"type" pot_event_type NOT NULL,
60-
"data" jsonb NOT NULL,
60+
"data" jsonb NOT NULL
6161
PRIMARY KEY ("pot_fk", "timestamp", "id")
6262
);
6363

@@ -166,7 +166,7 @@ CREATE TABLE "popo_chat_reservation" (
166166
"popo_chat_msg_type" popo_chat_type NOT NULL,
167167
"send_after" timestamp with time zone NOT NULL,
168168
"created_at" timestamp with time zone NOT NULL DEFAULT NOW(),
169-
"updated_at" timestamp with time zone NOT NULL DEFAULT NOW(),
169+
"updated_at" timestamp with time zone NOT NULL DEFAULT NOW()
170170
);
171171

172172
CREATE TABLE "refresh_token" (
@@ -199,9 +199,6 @@ ALTER TABLE "user_pot_room"
199199
ALTER TABLE "pot_room"
200200
ADD CONSTRAINT "PK_POT_ROOM" PRIMARY KEY ("pk");
201201

202-
ALTER TABLE "pot_event"
203-
ADD CONSTRAINT "PK_POT_EVENT" PRIMARY KEY ("pot_fk", "timestamp");
204-
205202
ALTER TABLE "user_alarm_setting"
206203
ADD CONSTRAINT "PK_USER_ALARM_SETTING" PRIMARY KEY ("pk");
207204

0 commit comments

Comments
 (0)