Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@comapeo/cloud

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@comapeo/cloud

self-hosted cloud server for CoMapeo

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
4
Created
Source

@comapeo/cloud

A self-hosted cloud server for CoMapeo.

Deploying CoMapeo Cloud

CoMapeo Cloud can be deployed using Docker. The official Docker image is available on Docker Hub at communityfirst/comapeo-cloud.

Using Docker

Pull and run the latest version:

docker run -d \
  -p 8080:8080 \
  -e SERVER_BEARER_TOKEN=<your-secret-token> \
  -v /path/to/data:/usr/src/app/data \
  communityfirst/comapeo-cloud:latest

Or use the Dockerfile to build a Docker image.

Server configuration is done using environment variables. The following environment variables are available:

Environment VariableRequiredDescriptionDefault Value
SERVER_BEARER_TOKENYesToken for authenticating API requests. Should be large random string
PORTNoPort on which the server runs8080
SERVER_NAMENoFriendly server name, seen by users when adding serverCoMapeo Server
ALLOWED_PROJECTSNoNumber of projects allowed to register with the server1
STORAGE_DIRNoPath for storing app & project data$CWD/data

If you are using Nginx to act as a reverse proxy for your CoMapeo Cloud server, ensure your proxy headers are configured to support WebSockets.

Deploying with fly.io

CoMapeo Cloud can be deployed on fly.io using the following steps:

  • Install the flyctl CLI tool by following the instructions here.
  • Create a new app on fly.io by running flyctl apps create, take a note of the app name.
  • Set the SERVER_BEARER_TOKEN secret via:
    flyctl secrets set SERVER_BEARER_TOKEN=<your-secret> --app <your-app-name>
    
  • Deploy the app by running (optionally setting the ALLOWED_PROJECTS environment variable):
    flyctl deploy --app <your-app-name> -e ALLOWED_PROJECTS=10
    
  • The app should now be running on fly.io. You can access it at https://<your-app-name>.fly.dev.

To destroy the app (delete all data and project invites), run:

[!WARNING] This action is irreversible and will permanently delete all data associated with the app, and projects that have already added the server will no longer be able to sync with it.

flyctl destroy --app <your-app-name>

FAQs

Package last updated on 23 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts