🏃Running Pupcloud
Pupcloud is distributed as a single executable file. Download and unpack the proper file for your OS/arch.
Once done, just execute it with the directory to serve as an argument:
Then, open http://localhost:17178
with a browser. As simple as that!
Runpupcloud --help
to see the other configuration options:
enable "write" operations (delete/cut/paste/upload...;
-E
or--allow-edits
);setup authentication (
-P
or-H
);setup folder sharing (
--share-profile
/--share-profiles
,--share-port
,--share-prefix
)specify a title/header for the web UI page (
--title
);use a different port then the default of 17178 (
-p
);bind to a network interface (
--bind-to
);instruct pupcloud to follow symlinks (
--follow-symlinks
);specify a maximum size for upload, in Megabytes (
--max-upload-size
).
By default, it's forbidden to run it as root. Use --allow-root
if you (really) want to.
Configure by env vars
Every CLI parameter can be specified via environment variable. If the corresponding env var is specified, it overwrites a CLI parameter. This is useful e.g. in Docker.
Env vars are mapped to CLI params as such:
The boolean env vars (PUP_ALLOW_EDITS
, PUP_ALLOW_ROOT
, PUP_FOLLOW_SYMLINKS
) are considered only when they are enabled, i.e. set to 1
. They cannot be used to deactivate a CLI parameter.
Write a "config file"
Pupcloud can't be configured with a config file. It's an explicit design choice, I wanted to limit all the "cruft" normally involved in installing an application... to the extreme. One day this might change though (see Discussion #26 for a short discussion).
For now, what can be done is to use the env vars to build a shell script that looks like a config file; something like:
or inline:
Last updated