Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Commit

Permalink
http to https forwarding for /api/
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgrady authored May 28, 2021
1 parent 596822c commit 7c6bce1
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions lmtrex/config/broker.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,36 @@

# prefork MPM
<IfModule prefork.c>
StartServers 3
MinSpareServers 1
MaxSpareServers 3
ServerLimit 15
MaxClients 10
MaxRequestsPerChild 50
StartServers 3
MinSpareServers 1
MaxSpareServers 3
ServerLimit 15
MaxClients 10
MaxRequestsPerChild 50
</IfModule>

# For t-rex roll
<VirtualHost *:80>
ServerName @FQDN@
# Redirect HTTP traffic to HTTPS
Redirect permanent /api/ https://@FQDN@/api/
</VirtualHost>


# Custom logs
LogLevel debug
CustomLog @LMSCRATCHDISK@/log/apache/lmrex_access combined
ErrorLog @LMSCRATCHDISK@/log/apache/lmrex_error

# Root for lifemapper content
RewriteEngine on
<VirtualHost *:443>
ServerName @FQDN@
SSLEngine on
SSLCertificateFile @CERTFILE@
SSLCertificateKeyFile @CERTKEYFILE@
Include @SSL_OPTIONS_FILE@
SSLCertificateChainFile @CHAIN_FILE@

# Custom logs
LogLevel debug
CustomLog @LMSCRATCHDISK@/log/apache/lmrex_access combined
ErrorLog @LMSCRATCHDISK@/log/apache/lmrex_error

# Root for lifemapper content
RewriteEngine on

# Broker WSGI
WSGIDaemonProcess lmtrex threads=5
Expand Down

0 comments on commit 7c6bce1

Please sign in to comment.