This repository initializes development instance of PQC-ed Nextcloud server using Docker.
- Install Docker and Docker Compose
- Clone this repository
- Run
git submodule update --init --remote --recursive
to download sub-repositories - WATCH OUT, key.pem and cert.pem are pre-generated RSA2048 keys to enable https on localhost - DO NOT USE THEM IN PRODUCTION
- to generate your own, run
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key.pem -out cert.pem
- to generate your own, run
- Run
docker-compose up -d
to start the server - Access the server at
https://localhost:8443
- changes in
nextcloud_apps/twofactor_webeid
are automatically reflected in the running Nextcloud instance
- In
Dockerfile
, make sure the DEBUG commands are enabled - in VSCode, attach to the container using Remote Explorer or Docker extension
- in the attached container, install PHP XDebug extension
- add PHP debug configuration (XDebug should install 3 configurations automatically)
- run the configuration
Listen for XDebug
to start listening for XDebug connections (might require container restart to work) - set some breakpoints in the code and the debugger should stop at them when the webpage is accessed at
https://localhost:8443