This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Auth filter /etc/fail2ban/filter.d/nginx-auth.conf: | |
# | |
# Blocks IPs that makes too much accesses to the server | |
# | |
[Definition] | |
failregex = ^<HOST> -.*"(GET|POST).*HTTP.*" | |
ignoreregex = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Systemd unit file for tomcat | |
[Unit] | |
Description=Apache Tomcat Web Application Container | |
Wants=syslog.target network.target | |
After=syslog.target network.target | |
[Service] | |
Type=forking | |
Environment=JAVA_HOME=/usr/java/jre |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Systemd unit file for BMC Midtier with embedded tomcat 7.x | |
[Unit] | |
Description=AR midtier - Apache Tomcat 7 | |
Wants=syslog.target network.target | |
After=syslog.target network.target | |
[Service] | |
Type=forking | |
ExecStart=/opt/apache/tomcat7/bin/startup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Systemd unit file for BMC ARSystem | |
[Unit] | |
Description=AR System service | |
After=network.target | |
Requires=oracle-xe.service rpcbind.service | |
[Service] | |
Type=forking | |
ExecStart=/opt/bmc/ARSystem/bin/arsystem start | |
ExecStop=/opt/bmc/ARSystem/bin/arsystem stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nginx BMC Remedy Mid Tier server configuration | |
server { | |
# Redirect 2 HTTPS | |
listen 80; | |
server_name _; | |
access_log off; | |
return 301 https://$host/arsys; | |
} | |
# Upstream of tomcat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nginx BMC Remedy Mid Tier server configuration | |
server { | |
# Redirect 2 HTTPS | |
listen 80; | |
server_name _; | |
access_log off; | |
return 301 https://$host/arsys; | |
} | |
# Upstream of tomcat - needs IP and Port of tomcat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use Java keytool to convert from JKS to P12... | |
Export from keytool's proprietary format (called "JKS") to standardized format PKCS #12: | |
keytool -importkeystore -srckeystore keystore.jks -destkeystore keystore.p12 -deststoretype PKCS12 -srcalias <jkskeyalias> -deststorepass <password> -destkeypass <password> | |
...then use openssl to export from P12 to PEM | |
Export certificate using openssl: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set environment for WAR deployed ARSystem Midtier and PSI-Probe webapp | |
JAVA_HOME=/opt/java-jre ; export JAVA_HOME | |
JRE_HOME=/opt/java-jre; export JRE_HOME | |
# AR Midtier optimizations | |
JAVA_OPTS="$JAVA_OPTS -Xms1024m"; export JAVA_OPTS | |
JAVA_OPTS="$JAVA_OPTS -Xmx2048m"; export JAVA_OPTS | |
JAVA_OPTS="$JAVA_OPTS -XX:MaxMetaspaceSize=512m"; export JAVA_OPTS | |
JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"; export JAVA_OPTS | |
JAVA_OPTS="$JAVA_OPTS -XX:+UseCompressedOops"; export JAVA_OPTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Midtier redirect</title> | |
<meta http-equiv="refresh" content="0; URL=/arsys"> | |
<meta name="keywords" content="automatic redirection"> | |
</head> | |
<body> | |
If your browser doesn't redirect within a few seconds, click <a href="/arsys">here.</a> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My DNS stopped working after upgrading from 16.04 to 18.04. | |
The solution that worked was to change | |
dns=dnsmasq | |
to | |
dns=systemd-resolved | |
in /etc/NetworkManager/NetworkManager.conf | |
Then restart NetworkManager by running: |
OlderNewer