README.md 961 Bytes
Newer Older
Misagh Moayyed's avatar
Misagh Moayyed committed
1
CAS4 Overlay Template
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
2
3
============================

Misagh Moayyed's avatar
Misagh Moayyed committed
4
Generic CAS maven war overlay to exercise the latest versions of CAS 4.x line. This overlay could be freely used as a starting template for local CAS maven war overlays.
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
5
6
7

# Versions
```xml
Misagh Moayyed's avatar
Misagh Moayyed committed
8
<cas.version>4.1.2</cas.version>
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
9
10
```

Misagh Moayyed's avatar
Misagh Moayyed committed
11
# Recommended Requirements
Misagh Moayyed's avatar
Misagh Moayyed committed
12
* JDK 1.7+
Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
13

Misagh Moayyed's avatar
Misagh Moayyed committed
14
# Configuration 
Misagh Moayyed's avatar
Misagh Moayyed committed
15
16
17
The `etc` directory contains the configuration files that need to be copied to `/cas/etc`. 

Current files are:
18

Misagh Moayyed's avatar
Misagh Moayyed committed
19
* `cas.properties`
Misagh Moayyed's avatar
Misagh Moayyed committed
20
* `log4j2.xml`
21

Misagh Moayyed's avatar
Misagh Moayyed committed
22
23
24
# Build

```bash
Misagh Moayyed's avatar
Misagh Moayyed committed
25
mvnw clean package
Misagh Moayyed's avatar
Misagh Moayyed committed
26
27
```

Misagh Moayyed's avatar
Misagh Moayyed committed
28
29
30
or

```bash
Misagh Moayyed's avatar
Misagh Moayyed committed
31
mvnw.bat clean package
Misagh Moayyed's avatar
Misagh Moayyed committed
32
33
```

Dmitriy Kopylenko's avatar
Dmitriy Kopylenko committed
34
35
# Deployment

Misagh Moayyed's avatar
Misagh Moayyed committed
36
37
38
39
40
41
42
43
44
45
## Embedded Jetty

* Create a Java keystore at `/etc/cas/jetty/thekeystore` with the password `changeit`. 
* Import your CAS server certificate inside this keystore.

```bash
mvnw jetty:run-forked
```

CAS will be available at:
Misagh Moayyed's avatar
Misagh Moayyed committed
46

Misagh Moayyed's avatar
Misagh Moayyed committed
47
48
* `http://cas.server.name:8080/cas`
* `https://cas.server.name:8443/cas`
Misagh Moayyed's avatar
Misagh Moayyed committed
49

Misagh Moayyed's avatar
Misagh Moayyed committed
50
51
## External
Deploy resultant `target/cas.war` to a Servlet container of choice.