Skip to content
This repository was archived by the owner on Mar 1, 2020. It is now read-only.

miron4dev/jviewer

Repository files navigation

JViewer

It is a webinar platform for the conferences about HTML, JavaScript, CSS and Java, which allows to:

  • create separate rooms (Web and Java)
  • demonstrate entered code and result of this code in real time
  • get tested on specific questions of topic

Technologies and frameworks, which are used:

  • Java
  • Spring & Spring Security
  • JSF
  • PrimeFaces
  • WebSocket
  • PostgreSQL
  • Maven
  • JMX

Configure WildFly locally

Prepare

  • Put changed integration/standalone.xml into standalone/configuration directory of your WildFly AS and open it in your favorite editor.

SSL

  1. Install Java Cryptography Extension (JCE)
  2. Create the "keystore" directory inside standalone/configuration and put jviewer.tk.jks inside.
  3. Change the keystore and key password in SSL block
<security-realm name="JViewerRealm">
	<server-identities>
		<ssl>
			<keystore path="keystore/jviewer.tk.jks" relative-to="jboss.server.config.dir" keystore-password="changeit" alias="tomcat" key-password="changeit"/>
		</ssl>
	</server-identities>
</security-realm>

Database

  1. Copy integration/modules directory into root of your WildFly AS.
  2. Change the database username and password in security block
<datasource jndi-name="java:jboss/datasources/jviewer" pool-name="jviewer" enabled="true" use-java-context="true">
	<connection-url>jdbc:postgresql://localhost:5432/jviewer</connection-url>
	<driver>postgresql</driver>
	<security>
		<user-name>changeit</user-name>
		<password>changeit</password>
	</security>
</datasource>

Security

  • Add jviewer.properties file inside standalone/configuration directory with next content
security.encryptPassword='replace by the real secret value'
security.encryptSalt='replace by the real salt value'

About

My university diploma work

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published