Skip to content

Commit

Permalink
build(main): rename the temporary path environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
danvergara committed Sep 13, 2024
1 parent 8ed4535 commit c8d2a19
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ A modal will pop up with a preview of the converted image.

<img src="screenshots/modal_morphos.png"/>

### Configuration

The configuration is only done by the environment varibles shown below.

* `MORPHOS_PORT` changes the port the server will listen to (default is `8080`)
* `MORPHOS_UPLOAD_PATH` defines the temporary path the files will be stored on disk (default is `/tmp`)

## Supported Files And Convert Matrix

### Images X Images
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var (
)

func init() {
uploadPath = os.Getenv("TMP_DIR")
uploadPath = os.Getenv("MORPHOS_UPLOAD_PATH")
if uploadPath == "" {
uploadPath = "/tmp"
}
Expand Down

0 comments on commit c8d2a19

Please sign in to comment.