-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e7523d
commit 878b096
Showing
10 changed files
with
78 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
NEXT_PUBLIC_SITE_HOST= | ||
NEXT_PUBLIC_SITE_PORT= | ||
NEXT_PUBLIC_SITE_PROTOCOL= | ||
NEXT_PUBLIC_POGGIT_SEARCH_API_KEY= | ||
NEXT_PUBLIC_CONTACT_EMAIL= | ||
TYPESENSE_API_KEY= | ||
TYPESENSE_SEARCH_API_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
/out | ||
.idea | ||
node_modules | ||
.env.development | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM alpine/curl:8.9.0 | ||
|
||
RUN apk update | ||
RUN apk add jq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
keys=$(curl -s "http://typesense:8108/keys" \ | ||
-H "X-TYPESENSE-API-KEY: $TYPESENSE_API_KEY") | ||
|
||
keys_length=$(echo "$keys" | jq ".keys | length") | ||
|
||
if [ "$keys_length" -gt 1 ]; then | ||
exit 0 | ||
else | ||
curl "http://typesense:8108/keys" \ | ||
-f \ | ||
-H "X-TYPESENSE-API-KEY: $TYPESENSE_API_KEY" \ | ||
-H "Content-Type: application/json" \ | ||
-d '{ | ||
"description": "Search-only plugins key.", | ||
"actions": ["documents:search"], | ||
"collections": ["plugins"], | ||
"value": "'"${TYPESENSE_SEARCH_API_KEY}"'" | ||
}' | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
FROM typesense/typesense:26.0 | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y curl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,6 @@ COPY . . | |
|
||
ENV NEXT_TELEMETRY_DISABLED 1 | ||
|
||
CMD npm run build && npm start | ||
RUN npm run build | ||
|
||
CMD npm start |