mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-01-15 01:14:27 -05:00
Fix env variables
This commit is contained in:
parent
13d4240a66
commit
2cdd802422
3 changed files with 8 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
APPWRITE_FUNCTION_API_KEY=
|
APPWRITE_FUNCTION_API_KEY=""
|
||||||
PUBLIC_APPWRITE_HOST=http://localhost/v1
|
PUBLIC_APPWRITE_HOST="http://localhost/v1"
|
||||||
PUBLIC_MAX_FILE_SIZE="300000000" # Must be the same as in the _APP_STORAGE_LIMIT in the Appwrite env file
|
PUBLIC_MAX_FILE_SIZE="300000000" # Note: Must be the same as in the _APP_STORAGE_LIMIT in the Appwrite env file
|
||||||
PUBLIC_DISABLE_REGISTRATION=true
|
PUBLIC_DISABLE_REGISTRATION="true" # Note: In the Appwrite console you have to change your user limit to 0 if false and else to 1
|
|
@ -9,3 +9,4 @@ services:
|
||||||
- APPWRITE_FUNCTION_API_KEY=${APPWRITE_FUNCTION_API_KEY}
|
- APPWRITE_FUNCTION_API_KEY=${APPWRITE_FUNCTION_API_KEY}
|
||||||
- PUBLIC_APPWRITE_HOST=${PUBLIC_APPWRITE_HOST}
|
- PUBLIC_APPWRITE_HOST=${PUBLIC_APPWRITE_HOST}
|
||||||
- PUBLIC_MAX_FILE_SIZE=${PUBLIC_MAX_FILE_SIZE}
|
- PUBLIC_MAX_FILE_SIZE=${PUBLIC_MAX_FILE_SIZE}
|
||||||
|
- PUBLIC_DISABLE_REGISTRATION=${PUBLIC_DISABLE_REGISTRATION}
|
|
@ -53,13 +53,13 @@ const Dropzone = ({
|
||||||
setFiles: Dispatch<SetStateAction<File[]>>;
|
setFiles: Dispatch<SetStateAction<File[]>>;
|
||||||
}) => {
|
}) => {
|
||||||
const theme = useMantineTheme();
|
const theme = useMantineTheme();
|
||||||
const config = useConfig()
|
const config = useConfig();
|
||||||
const { classes } = useStyles();
|
const { classes } = useStyles();
|
||||||
const openRef = useRef<() => void>();
|
const openRef = useRef<() => void>();
|
||||||
return (
|
return (
|
||||||
<div className={classes.wrapper}>
|
<div className={classes.wrapper}>
|
||||||
<MantineDropzone
|
<MantineDropzone
|
||||||
maxSize={parseInt(config.APPWRITE_HOST)}
|
maxSize={config.MAX_FILE_SIZE}
|
||||||
onReject={(e) => {
|
onReject={(e) => {
|
||||||
toast.error(e[0].errors[0].message);
|
toast.error(e[0].errors[0].message);
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue