Home Explore Blog Models CI



nixpkgs

nixos/modules/services/web-apps/c2fmzq-server.md
33e2332475ce2ea34cab943be597156c8563193963b0f7bc0000000300000488
# c2FmZQ {#module-services-c2fmzq}

c2FmZQ is an application that can securely encrypt, store, and share files,
including but not limited to pictures and videos.

The service `c2fmzq-server` can be enabled by setting
```nix
{ services.c2fmzq-server.enable = true; }
```
This will spin up an instance of the server which is API-compatible with
[Stingle Photos](https://stingle.org) and an experimental Progressive Web App
(PWA) to interact with the storage via the browser.

In principle the server can be exposed directly on a public interface and there
are command line options to manage HTTPS certificates directly, but the module
is designed to be served behind a reverse proxy or only accessed via localhost.

```nix
{
  services.c2fmzq-server = {
    enable = true;
    bindIP = "127.0.0.1"; # default
    port = 8080; # default
  };

  services.nginx = {
    enable = true;
    recommendedProxySettings = true;
    virtualHosts."example.com" = {
      enableACME = true;
      forceSSL = true;
      locations."/" = {
        proxyPass = "http://127.0.0.1:8080";
      };
    };
  };
}
```

For more information, see <https://github.com/c2FmZQ/c2FmZQ/>.

Chunks
a8ab69d3 (1st chunk of `nixos/modules/services/web-apps/c2fmzq-server.md`)
Title: c2FmZQ: Secure File Encryption, Storage, and Sharing Service
Summary
c2FmZQ is an application designed for securely encrypting, storing, and sharing files such as pictures and videos. Its server component, `c2fmzq-server`, can be enabled via NixOS configuration and is API-compatible with Stingle Photos, offering an experimental Progressive Web App (PWA). While capable of managing HTTPS certificates directly, the service is primarily intended to be used behind a reverse proxy or accessed only via localhost, as demonstrated with a Nix configuration example for Nginx. Further details are available on its GitHub repository.