-
Notifications
You must be signed in to change notification settings - Fork 5
Smooth out development hiccups #49
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
06951ac
chore: add config files to .gitignore
cykreet 82b47bd
chore: compose postgres ports
cykreet 5be8965
chore: example config files for development
cykreet 695fc1e
chore: development readme
cykreet 3e32293
fix: ignore disallowed secrets in dev
cykreet 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
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
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
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
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,111 @@ | ||
| # you can pass in most config options through environment variables, | ||
| # for example `MICRO_DATABASE_URL` will override the databaseUrl in this config file. | ||
| # remove the .yaml extension or change it to .json to use JSON-with-comments | ||
| # ref: https://github.com/sylv/venera#sources | ||
|
|
||
| databaseUrl: postgresql://micro:youshallnotpass@127.0.0.1/micro | ||
|
|
||
| # EXTREMELY IMPORTANT | ||
| # this is the secret used to sign json web tokens. this *must* be a secure, random string that no one else has. | ||
| # if you dont change this, any user will be able to act as any other user by creating a token for someone else. | ||
| # 32+ characters is recommended. | ||
| secret: YOU_SHALL_NOT_PASS | ||
|
|
||
| # the email that will show on the home page. in the future the home page will be customisable, | ||
| # until then change this to your own email. | ||
| inquiries: admin@example.com | ||
|
|
||
| # where to store files, can be relative to the cwd or absolute. | ||
| storagePath: data | ||
|
|
||
| # string formatted maximum file upload size. | ||
| uploadLimit: 10MB | ||
|
|
||
| # whether files uploaded to one domain should be available on other domains. | ||
| # you should leave this enabled as it stops users uploading to {{username}} | ||
| # domains as other users, for example user "one" could upload to one.example.com | ||
| # then replace "one" with "two" and it would look like user "two" uploaded it. | ||
| restrictFilesToHost: true | ||
|
|
||
| # # purging can be used to clean up old files, useful if you want to allow large files to be uploaded | ||
| # # but dont want to store them forever. this is commented by default to prevent accidental purging | ||
| # # uncomment the section below to enable it. | ||
| # purge: | ||
| # overLimit: 1MB # files over this size will be purged | ||
| # afterTime: 1d # after this many days | ||
| # underViews: 5 # only delete files with <5 views | ||
|
|
||
| # # allowTypes is a list of file types that can be uploaded. | ||
| # # a prefix will be expanded into known types, so `video` becomes `video/mp4`, `video/webm`, etc. | ||
| # # omit entirely to allow all types to be uploaded. | ||
| # allowTypes: | ||
| # - video | ||
| # - image | ||
| # - image/png | ||
|
|
||
| hosts: | ||
| # the first host in the list is the default host | ||
| - url: http://127.0.0.1 | ||
|
|
||
| # {{username}} will become the users name when they use this host | ||
| # - url: https://{{username}}.example.com | ||
|
|
||
| # - url: https://i.example.net | ||
| # redirect when users go to this hosts url without a file | ||
| # redirect: https://example.net | ||
| # only allow users with the "admin" tag to use this host | ||
| # tags: ["admin"] | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| # # To allow and require users to sign up with an email, specify an SMTP server to send emails from. | ||
| # # If you do not specify an email, it will not be asked for during signup and users will sign in with their username. | ||
| # # Enabling this on an existing instance will prompt users without an email to add one (https://micro.sylo.digital/i/J1Ilba) | ||
| # email: | ||
| # from: 'noreply@example.net' | ||
| # smtp: | ||
| # host: smtp.example.net | ||
| # port: 465 | ||
| # secure: true | ||
| # auth: | ||
| # user: 'username' | ||
| # pass: 'password' | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| # Conversions allow you to convert files to other formats on upload. | ||
| # This is intended for converting inefficient formats like gif to webm (40mb>4mb in testing). | ||
| # The original copy will be discarded. | ||
|
|
||
| # Video conversions rely on ffmpeg which is a slow and flakey process. If possible, | ||
| # it's recommended to disable conversions and just don't upload gifs. | ||
|
|
||
| # The recommended options are below, on low power devices like a raspberry pi you should disable conversions entirely. | ||
| # This is currently not retroactive, but in the future old files may also be converted. | ||
| conversions: | ||
| # You cannot convert video/* to image/* and vice versa. How would that even work? | ||
| # image/gif to video/webm is an exception. | ||
| - from: image/gif # This could also be a list of types, just a category like "image", or both. | ||
| to: video/webm | ||
| minSize: 1MB # Required size before conversion, files uploaded under this limit are ignored | ||
|
|
||
| # # externalStorage lets you offload files to S3 to free up space locally. | ||
| # # you should prefer local storage over external storage, as external storage is usually very slow. | ||
| # # the benefit is that external storage is unlimited, local disk space is not. | ||
| # externalStorage: | ||
| # type: s3 | ||
| # bucket: my-bucket | ||
| # region: us-west-1 | ||
| # endpoint: s3.us-west-1.amazonaws.com # optional | ||
| # forcePathStyle: false # optional | ||
| # credentials: | ||
| # accessKeyId: my-access-key | ||
| # secretAccessKey: my-secret-key | ||
| # filter: | ||
| # decayDuration: 7d # how long before files are moved to external storage | ||
| # minSize: 1MB # files under this size will not be moved | ||
| # maxSize: 1GB # files over this size will be moved |
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
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
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
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.
didn't mean to add this, but this just adds a small gap between the file and
Uploadbutton on the upload page (previously tied at the hip)