Sign inSign up

dualauth/passwordless-x1280-webapp

By dualauth

•Updated 4 months ago

Sample Web Application for Passwordless X1280

Image
0

1.1K

dualauth/passwordless-x1280-webapp repository overview

⁠How to use this image

⁠Start a passwordless-x1280-webapp instance

** If you have not installed the DB server, please install it first.

$ docker network create webapp-network
$ docker run -d --name webapp-db \
  --network webapp-network \
  --restart always \
  -e MARIADB_ROOT_PASSWORD='mariadb-root-password' \
  -e MARIADB_DATABASE='passwordless' \
  -e MARIADB_USER='pwless' \
  -e MARIADB_PASSWORD='mariadb-user-password' \
  -p 127.0.0.1:13306:3306 \
  -v ./webapp_db_init.sql:/docker-entrypoint-initdb.d/init.sql:ro \
  -v webapp-database:/var/lib/mysql \
  mariadb:latest
⁠webapp_db_init.sql
CREATE DATABASE IF NOT EXISTS `passwordless`;
USE `passwordless`;

CREATE TABLE IF NOT EXISTS `userinfo` (
    `id` VARCHAR (500) NOT NULL,
    `pw` VARCHAR (500) NOT NULL,
    `regdate` datetime NULL default NOW(),
    PRIMARY KEY (`id` ASC)
);
⁠Installation
$ firewall-cmd --permanent --add-port=80/tcp
$ firewall-cmd --reload

$ docker run -d --name webapp \
  --network host \
  --restart always \
  -e DB_NAME='passwordless' \
  -e DB_USER='pwless' \
  -e DB_PASSWORD='mariadb-user-password' \
  -e DB_HOST=127.0.0.1 \
  -e DB_PORT=13306 \
  -v webapp-logs:/opt/x1280/tomcat/logs \
  -v webapp-config:/etc/opt/x1280 \
  dualauth/passwordless-x1280-webapp:latest

Once the installation is complete, you must modify the server key and domain of the Passwordless X1280 server.

$ docker cp webapp:/usr/local/tomcat/webapps/ROOT/WEB-INF/classes/properties/config.properties .

Once the modifications are complete, upload the config.properties file and restart the server.

$ docker cp ./config.properties webapp:/usr/local/tomcat/webapps/ROOT/WEB-INF/classes/properties/

$ docker restart webapp
$ docker logs -f webapp

Passwordless Alliance is providing Passwordless X1280 software for free to B2C online services worldwide.

Join as a Passwordless Alliance member now and help create a world without passwords.


Learn more about the Passwordless Alliance.

Passwordless Alliance

https://www.passwordlessalliance.org⁠


Join the Passwordless Alliance and provide passwordless online services.

Passwordless X1280 Members

https://members.passwordlessalliance.org⁠


We provide tutorials and example projects for implementing Passwordless X1280 into online services.

Passwordless X1280 github

https://github.com/PasswordlessAlliance⁠

Tag summary

Content type

Image

Digest

sha256:97aacee0f…

Size

132.9 MB

Last updated

4 months ago

docker pull dualauth/passwordless-x1280-webapp