Skip to content

Commit

Permalink
모든 종류의 hostname 에 대한 접속 허용.
Browse files Browse the repository at this point in the history
비록 가짜 페이먼츠 서버이나, 그래도 외부 접속에 대해 열어주자.
  • Loading branch information
samchon committed Nov 20, 2023
1 parent 8ec5813 commit 5adfcab
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 33 deletions.
2 changes: 1 addition & 1 deletion packages/fake-iamport-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fake-iamport-server",
"version": "5.1.2",
"version": "5.1.4",
"description": "Fake iamport server for testing",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down
5 changes: 4 additions & 1 deletion packages/fake-iamport-server/src/FakeIamportBackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ export class FakeIamportBackend {

// DO OPEN
this.application_.enableCors();
await this.application_.listen(FakeIamportConfiguration.API_PORT);
await this.application_.listen(
FakeIamportConfiguration.API_PORT,
"0.0.0.0",
);

//----
// POST-PROCESSES
Expand Down
2 changes: 1 addition & 1 deletion packages/fake-toss-payments-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fake-toss-payments-server",
"version": "5.1.2",
"version": "5.1.4",
"description": "Fake toss-payments server for testing",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/fake-toss-payments-server/src/FakeTossBackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class FakeTossBackend {

// DO OPEN
this.application_.enableCors();
await this.application_.listen(FakeTossConfiguration.API_PORT);
await this.application_.listen(FakeTossConfiguration.API_PORT, "0.0.0.0");

//----
// POST-PROCESSES
Expand Down
2 changes: 1 addition & 1 deletion packages/iamport-server-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iamport-server-api",
"version": "5.1.2",
"version": "5.1.4",
"description": "API for Iamport Server",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down
16 changes: 8 additions & 8 deletions packages/iamport-server-api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"info": {
"title": "Iamport API",
"description": "Built by [fake-iamport-server](https://github.com/samchon/payments/tree/master/packages/fake-iamport-server) with [nestia](https://github.com/samchon/nestia)",
"version": "5.1.2",
"version": "5.1.4",
"license": {
"name": "MIT"
}
Expand Down Expand Up @@ -529,7 +529,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts",
"textSpan": {
"start": 447,
"start": 429,
"length": 16
}
}
Expand Down Expand Up @@ -630,7 +630,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts",
"textSpan": {
"start": 447,
"start": 429,
"length": 16
}
}
Expand Down Expand Up @@ -831,7 +831,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts",
"textSpan": {
"start": 447,
"start": 429,
"length": 16
}
}
Expand Down Expand Up @@ -1096,7 +1096,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts",
"textSpan": {
"start": 2101,
"start": 2017,
"length": 16
}
}
Expand Down Expand Up @@ -1302,7 +1302,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts",
"textSpan": {
"start": 2101,
"start": 2017,
"length": 16
}
}
Expand Down Expand Up @@ -1415,7 +1415,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts",
"textSpan": {
"start": 2101,
"start": 2017,
"length": 16
}
}
Expand Down Expand Up @@ -1533,7 +1533,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts",
"textSpan": {
"start": 2101,
"start": 2017,
"length": 16
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/payment-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@samchon/payment-api",
"version": "5.1.2",
"version": "5.1.4",
"description": "API for Payment Backend",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -35,8 +35,8 @@
},
"dependencies": {
"@nestia/fetcher": "^2.3.9",
"iamport-server-api": "^5.1.2",
"toss-payments-server-api": "^5.1.2",
"iamport-server-api": "^5.1.4",
"toss-payments-server-api": "^5.1.4",
"typia": "^5.2.6"
}
}
2 changes: 1 addition & 1 deletion packages/payment-api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}
],
"info": {
"version": "5.1.2",
"version": "5.1.4",
"title": "@samchon/payment-backend",
"description": "Payment Backend Server",
"license": {
Expand Down
12 changes: 6 additions & 6 deletions packages/payment-backend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@samchon/payment-backend",
"version": "5.1.2",
"version": "5.1.4",
"description": "Payment Backend Server",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -68,12 +68,12 @@
"cli": "^1.0.1",
"copy-webpack-plugin": "^11.0.0",
"copyfiles": "^2.4.1",
"iamport-server-api": "^5.1.2",
"iamport-server-api": "^5.1.4",
"nestia": "^5.0.3",
"pm2": "^4.5.6",
"rimraf": "^3.0.2",
"sloc": "^0.2.1",
"toss-payments-server-api": "^5.1.2",
"toss-payments-server-api": "^5.1.4",
"ts-loader": "^9.5.0",
"ts-node": "^10.9.1",
"ts-patch": "^3.0.2",
Expand All @@ -92,8 +92,8 @@
"bcryptjs": "^2.4.3",
"dotenv": "^16.3.1",
"dotenv-expand": "^10.0.0",
"fake-iamport-server": "^5.1.2",
"fake-toss-payments-server": "^5.1.2",
"fake-iamport-server": "^5.1.4",
"fake-toss-payments-server": "^5.1.4",
"fastify": "^4.24.3",
"git-last-commit": "^1.0.0",
"inquirer": "^8.2.5",
Expand All @@ -111,4 +111,4 @@
"LICENSE",
"README.md"
]
}
}
2 changes: 1 addition & 1 deletion packages/payment-backend/src/PaymentBackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class PaymentBackend {
this.application_.use(this.middleware.bind(this));

// DO OPEN
await this.application_.listen(PaymentConfiguration.API_PORT());
await this.application_.listen(PaymentConfiguration.API_PORT(), "0.0.0.0");

// CONFIGURE FAKE SERVERS IF TESTING
if (PaymentGlobal.testing === true) {
Expand Down
2 changes: 1 addition & 1 deletion packages/toss-payments-server-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "toss-payments-server-api",
"version": "5.1.2",
"version": "5.1.4",
"description": "API for Toss Payments Server",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down
16 changes: 8 additions & 8 deletions packages/toss-payments-server-api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"info": {
"title": "Toss Payments API",
"description": "Built by [fake-toss-payments-server](https://github.com/samchon/payments/tree/master/packages/toss-payments-server-api) with [nestia](https://github.com/samchon/nestia)",
"version": "5.1.2",
"version": "5.1.4",
"license": {
"name": "MIT"
}
Expand Down Expand Up @@ -178,7 +178,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossBilling.ts",
"textSpan": {
"start": 437,
"start": 415,
"length": 19
}
}
Expand Down Expand Up @@ -310,7 +310,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossBilling.ts",
"textSpan": {
"start": 437,
"start": 415,
"length": 19
}
}
Expand Down Expand Up @@ -528,7 +528,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossCashReceipt.ts",
"textSpan": {
"start": 156,
"start": 145,
"length": 19
}
}
Expand Down Expand Up @@ -704,7 +704,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts",
"textSpan": {
"start": 2165,
"start": 2071,
"length": 19
}
}
Expand Down Expand Up @@ -802,7 +802,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts",
"textSpan": {
"start": 2165,
"start": 2071,
"length": 19
}
}
Expand Down Expand Up @@ -906,7 +906,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts",
"textSpan": {
"start": 2165,
"start": 2071,
"length": 19
}
}
Expand Down Expand Up @@ -1124,7 +1124,7 @@
"target": {
"fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts",
"textSpan": {
"start": 2165,
"start": 2071,
"length": 19
}
}
Expand Down

0 comments on commit 5adfcab

Please sign in to comment.