1# c2FmZQ {#module-services-c2fmzq} 2 3c2FmZQ is an application that can securely encrypt, store, and share files, 4including but not limited to pictures and videos. 5 6The service `c2fmzq-server` can be enabled by setting 7```nix 8{ 9 services.c2fmzq-server.enable = true; 10} 11``` 12This will spin up an instance of the server which is API-compatible with 13[Stingle Photos](https://stingle.org) and an experimental Progressive Web App 14(PWA) to interact with the storage via the browser. 15 16In principle the server can be exposed directly on a public interface and there 17are command line options to manage HTTPS certificates directly, but the module 18is designed to be served behind a reverse proxy or only accessed via localhost. 19 20```nix 21{ 22 services.c2fmzq-server = { 23 enable = true; 24 bindIP = "127.0.0.1"; # default 25 port = 8080; # default 26 }; 27 28 services.nginx = { 29 enable = true; 30 recommendedProxySettings = true; 31 virtualHosts."example.com" = { 32 enableACME = true; 33 forceSSL = true; 34 locations."/" = { 35 proxyPass = "http://127.0.0.1:8080"; 36 }; 37 }; 38 }; 39} 40``` 41 42For more information, see <https://github.com/c2FmZQ/c2FmZQ/>.