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