-
Notifications
You must be signed in to change notification settings - Fork 14
starpi app #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ankur-dwivedi
wants to merge
4
commits into
master
Choose a base branch
from
IK-1916
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
starpi app #45
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,7 @@ | ||
| HOST=0.0.0.0 | ||
| PORT=1337 | ||
| APP_KEYS="toBeModified1,toBeModified2" | ||
| API_TOKEN_SALT=tobemodified | ||
| ADMIN_JWT_SECRET=tobemodified | ||
| TRANSFER_TOKEN_SALT=tobemodified | ||
| JWT_SECRET=tobemodified |
This file contains hidden or 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,131 @@ | ||
| ############################ | ||
| # OS X | ||
| ############################ | ||
|
|
||
| .DS_Store | ||
| .AppleDouble | ||
| .LSOverride | ||
| Icon | ||
| .Spotlight-V100 | ||
| .Trashes | ||
| ._* | ||
|
|
||
|
|
||
| ############################ | ||
| # Linux | ||
| ############################ | ||
|
|
||
| *~ | ||
|
|
||
|
|
||
| ############################ | ||
| # Windows | ||
| ############################ | ||
|
|
||
| Thumbs.db | ||
| ehthumbs.db | ||
| Desktop.ini | ||
| $RECYCLE.BIN/ | ||
| *.cab | ||
| *.msi | ||
| *.msm | ||
| *.msp | ||
|
|
||
|
|
||
| ############################ | ||
| # Packages | ||
| ############################ | ||
|
|
||
| *.7z | ||
| *.csv | ||
| *.dat | ||
| *.dmg | ||
| *.gz | ||
| *.iso | ||
| *.jar | ||
| *.rar | ||
| *.tar | ||
| *.zip | ||
| *.com | ||
| *.class | ||
| *.dll | ||
| *.exe | ||
| *.o | ||
| *.seed | ||
| *.so | ||
| *.swo | ||
| *.swp | ||
| *.swn | ||
| *.swm | ||
| *.out | ||
| *.pid | ||
|
|
||
|
|
||
| ############################ | ||
| # Logs and databases | ||
| ############################ | ||
|
|
||
| .tmp | ||
| *.log | ||
| *.sql | ||
| *.sqlite | ||
| *.sqlite3 | ||
|
|
||
|
|
||
| ############################ | ||
| # Misc. | ||
| ############################ | ||
|
|
||
| *# | ||
| ssl | ||
| .idea | ||
| nbproject | ||
| public/uploads/* | ||
| !public/uploads/.gitkeep | ||
| .tsbuildinfo | ||
| .eslintcache | ||
|
|
||
| ############################ | ||
| # Node.js | ||
| ############################ | ||
|
|
||
| lib-cov | ||
| lcov.info | ||
| pids | ||
| logs | ||
| results | ||
| node_modules | ||
| .node_history | ||
|
|
||
| ############################ | ||
| # Package managers | ||
| ############################ | ||
|
|
||
| .yarn/* | ||
| !.yarn/cache | ||
| !.yarn/unplugged | ||
| !.yarn/patches | ||
| !.yarn/releases | ||
| !.yarn/sdks | ||
| !.yarn/versions | ||
| .pnp.* | ||
| yarn-error.log | ||
|
|
||
| ############################ | ||
| # Tests | ||
| ############################ | ||
|
|
||
| coverage | ||
|
|
||
| ############################ | ||
| # Strapi | ||
| ############################ | ||
|
|
||
| .env | ||
| license.txt | ||
| exports | ||
| .strapi | ||
| dist | ||
| build | ||
| .strapi-updater.json | ||
| .strapi-cloud.json |
This file contains hidden or 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,61 @@ | ||
| # 🚀 Getting started with Strapi | ||
|
|
||
| Strapi comes with a full featured [Command Line Interface](https://docs.strapi.io/dev-docs/cli) (CLI) which lets you scaffold and manage your project in seconds. | ||
|
|
||
| ### `develop` | ||
|
|
||
| Start your Strapi application with autoReload enabled. [Learn more](https://docs.strapi.io/dev-docs/cli#strapi-develop) | ||
|
|
||
| ``` | ||
| npm run develop | ||
| # or | ||
| yarn develop | ||
| ``` | ||
|
|
||
| ### `start` | ||
|
|
||
| Start your Strapi application with autoReload disabled. [Learn more](https://docs.strapi.io/dev-docs/cli#strapi-start) | ||
|
|
||
| ``` | ||
| npm run start | ||
| # or | ||
| yarn start | ||
| ``` | ||
|
|
||
| ### `build` | ||
|
|
||
| Build your admin panel. [Learn more](https://docs.strapi.io/dev-docs/cli#strapi-build) | ||
|
|
||
| ``` | ||
| npm run build | ||
| # or | ||
| yarn build | ||
| ``` | ||
|
|
||
| ## ⚙️ Deployment | ||
|
|
||
| Strapi gives you many possible deployment options for your project including [Strapi Cloud](https://cloud.strapi.io). Browse the [deployment section of the documentation](https://docs.strapi.io/dev-docs/deployment) to find the best solution for your use case. | ||
|
|
||
| ``` | ||
| yarn strapi deploy | ||
| ``` | ||
|
|
||
| ## 📚 Learn more | ||
|
|
||
| - [Resource center](https://strapi.io/resource-center) - Strapi resource center. | ||
| - [Strapi documentation](https://docs.strapi.io) - Official Strapi documentation. | ||
| - [Strapi tutorials](https://strapi.io/tutorials) - List of tutorials made by the core team and the community. | ||
| - [Strapi blog](https://strapi.io/blog) - Official Strapi blog containing articles made by the Strapi team and the community. | ||
| - [Changelog](https://strapi.io/changelog) - Find out about the Strapi product updates, new features and general improvements. | ||
|
|
||
| Feel free to check out the [Strapi GitHub repository](https://github.com/strapi/strapi). Your feedback and contributions are welcome! | ||
|
|
||
| ## ✨ Community | ||
|
|
||
| - [Discord](https://discord.strapi.io) - Come chat with the Strapi community including the core team. | ||
| - [Forum](https://forum.strapi.io/) - Place to discuss, ask questions and find answers, show your Strapi project and get feedback or just talk with other Community members. | ||
| - [Awesome Strapi](https://github.com/strapi/awesome-strapi) - A curated list of awesome things related to Strapi. | ||
|
|
||
| --- | ||
|
|
||
| <sub>🤫 Psst! [Strapi is hiring](https://strapi.io/careers).</sub> |
This file contains hidden or 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,17 @@ | ||
| export default ({ env }) => ({ | ||
| auth: { | ||
| secret: env('ADMIN_JWT_SECRET'), | ||
| }, | ||
| apiToken: { | ||
| salt: env('API_TOKEN_SALT'), | ||
| }, | ||
| transfer: { | ||
| token: { | ||
| salt: env('TRANSFER_TOKEN_SALT'), | ||
| }, | ||
| }, | ||
| flags: { | ||
| nps: env.bool('FLAG_NPS', true), | ||
| promoteEE: env.bool('FLAG_PROMOTE_EE', true), | ||
| }, | ||
| }); |
This file contains hidden or 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,7 @@ | ||
| export default { | ||
| rest: { | ||
| defaultLimit: 25, | ||
| maxLimit: 100, | ||
| withCount: true, | ||
| }, | ||
| }; |
This file contains hidden or 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,60 @@ | ||
| import path from 'path'; | ||
|
|
||
| export default ({ env }) => { | ||
| const client = env('DATABASE_CLIENT', 'sqlite'); | ||
|
|
||
| const connections = { | ||
| mysql: { | ||
| connection: { | ||
| host: env('DATABASE_HOST', 'localhost'), | ||
| port: env.int('DATABASE_PORT', 3306), | ||
| database: env('DATABASE_NAME', 'strapi'), | ||
| user: env('DATABASE_USERNAME', 'strapi'), | ||
| password: env('DATABASE_PASSWORD', 'strapi'), | ||
| ssl: env.bool('DATABASE_SSL', false) && { | ||
| key: env('DATABASE_SSL_KEY', undefined), | ||
| cert: env('DATABASE_SSL_CERT', undefined), | ||
| ca: env('DATABASE_SSL_CA', undefined), | ||
| capath: env('DATABASE_SSL_CAPATH', undefined), | ||
| cipher: env('DATABASE_SSL_CIPHER', undefined), | ||
| rejectUnauthorized: env.bool('DATABASE_SSL_REJECT_UNAUTHORIZED', true), | ||
| }, | ||
| }, | ||
| pool: { min: env.int('DATABASE_POOL_MIN', 2), max: env.int('DATABASE_POOL_MAX', 10) }, | ||
| }, | ||
| postgres: { | ||
| connection: { | ||
| connectionString: env('DATABASE_URL'), | ||
| host: env('DATABASE_HOST', 'localhost'), | ||
| port: env.int('DATABASE_PORT', 5432), | ||
| database: env('DATABASE_NAME', 'strapi'), | ||
| user: env('DATABASE_USERNAME', 'strapi'), | ||
| password: env('DATABASE_PASSWORD', 'strapi'), | ||
| ssl: env.bool('DATABASE_SSL', false) && { | ||
| key: env('DATABASE_SSL_KEY', undefined), | ||
| cert: env('DATABASE_SSL_CERT', undefined), | ||
| ca: env('DATABASE_SSL_CA', undefined), | ||
| capath: env('DATABASE_SSL_CAPATH', undefined), | ||
| cipher: env('DATABASE_SSL_CIPHER', undefined), | ||
| rejectUnauthorized: env.bool('DATABASE_SSL_REJECT_UNAUTHORIZED', true), | ||
| }, | ||
| schema: env('DATABASE_SCHEMA', 'public'), | ||
| }, | ||
| pool: { min: env.int('DATABASE_POOL_MIN', 2), max: env.int('DATABASE_POOL_MAX', 10) }, | ||
| }, | ||
| sqlite: { | ||
| connection: { | ||
| filename: path.join(__dirname, '..', '..', env('DATABASE_FILENAME', '.tmp/data.db')), | ||
| }, | ||
| useNullAsDefault: true, | ||
| }, | ||
| }; | ||
|
|
||
| return { | ||
| connection: { | ||
| client, | ||
| ...connections[client], | ||
| acquireConnectionTimeout: env.int('DATABASE_CONNECTION_TIMEOUT', 60000), | ||
| }, | ||
| }; | ||
| }; |
This file contains hidden or 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,26 @@ | ||
| export default [ | ||
| 'strapi::logger', | ||
| 'strapi::errors', | ||
| 'strapi::security', | ||
| 'strapi::cors', | ||
| 'strapi::poweredBy', | ||
| 'strapi::query', | ||
| 'strapi::body', | ||
| 'strapi::session', | ||
| 'strapi::favicon', | ||
| 'strapi::public', | ||
| { | ||
| name: 'strapi::security', | ||
| config: { | ||
| contentSecurityPolicy: { | ||
| useDefaults: true, | ||
| directives: { | ||
| 'connect-src': ["'self'", 'https:'], | ||
| 'img-src': ["'self'", 'data:', 'blob:', 'ik.imagekit.io'], | ||
| 'media-src': ["'self'", 'data:', 'blob:', 'ik.imagekit.io'], | ||
| upgradeInsecureRequests: null, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| ]; |
This file contains hidden or 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,42 @@ | ||
| module.exports = ({ env }) => ({ | ||
| // ... | ||
| upload: { | ||
| config: { | ||
| provider: "strapi-provider-upload-imagekitio", | ||
| providerOptions: { | ||
| publicKey: env("PUBLIC_KEY"), | ||
| privateKey: env("PRIVATE_KEY"), | ||
| urlEndpoint: env("URL_ENDPOINT"), | ||
|
|
||
| // Optional | ||
| uploadOptions: { | ||
| folder: "/path", | ||
| useUniqueFileName: true, | ||
| tags: ["tag1", "tag2"], | ||
| checks: `"file.size" < "1mb"`, | ||
| isPrivateFile: false, | ||
| customCoordinates: "1,2,3,4", | ||
| webhookUrl: "https://testwebook.com", | ||
| extensions: [ | ||
| { | ||
| name: "google-auto-tagging", | ||
| maxTags: 5, | ||
| minConfidence: 95, | ||
| }, | ||
| ], | ||
| transformation: { | ||
| pre: "l-text,i-Imagekit,fs-50,l-end", | ||
| post: [ | ||
| { | ||
| type: "transformation", | ||
| value: "l-text,i-Imagekit,fs-50,l-end", | ||
| }, | ||
| ], | ||
| }, | ||
| customMetadata: { test: "value" }, | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| // ... | ||
| }); |
This file contains hidden or 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,7 @@ | ||
| export default ({ env }) => ({ | ||
| host: env('HOST', '0.0.0.0'), | ||
| port: env.int('PORT', 1337), | ||
| app: { | ||
| keys: env.array('APP_KEYS'), | ||
| }, | ||
| }); |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to match https://github.com/imagekit-samples/quickstart/tree/master/android
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done