Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Luc Didry
kresus
Commits
7dc83952
Commit
7dc83952
authored
Apr 13, 2019
by
Benjamin Bouvier
Browse files
[apache conf] Tweak whitespaces, dot at end of line, wording;
parent
78a91f35
Changes
1
Hide whitespace changes
Inline
Side-by-side
support/apache.conf
View file @
7dc83952
# Change this to the path to your Kresus installation
# Change this to the path to your Kresus installation
.
Define
KRESUS_ROOT
/
home
/
kresus
/
kresus
/
build
/
client
# Change this to your kresus server name
# Change this to your kresus server name
.
Define
KRESUS_SERVER_NAME
your
.
domain
.
tld
# Change if your Kresus local instance runs on another port
# Change if your Kresus local instance runs on another port
.
Define
KRESUS_LOCAL_PORT
9876
# Change this if your Kresus instance is exposed under a subpaht, for instance /kresus
# Change this if your Kresus instance is exposed under a subpath, for instance
# /kresus.
Define
KRESUS_EXPOSED_PATH
""
# Change this if needed
# Change this
to the path where the logs should be recorded,
if needed
.
Define
KRESUS_LOG_ROOT
/
var
/
log
/
kresus
# Change this to the path to your certs directory
# Change this to the path to your cert
ificate
s directory
.
Define
CERTS_ROOT
/
etc
/
letsencrypt
/
live
/${
KRESUS_SERVER_NAME
}
<
VirtualHost
*:
80
>
ServerName
${
KRESUS_SERVER_NAME
}
# If you are using Docker, it's better to drop this line altogether
# If you are using Docker, it's better to drop this line altogether
.
DocumentRoot
${
KRESUS_ROOT
}/
Header
set
Strict
-
Transport
-
Security
max
-
age
=
15768000
ErrorLog
${
KRESUS_LOG_ROOT
}/
kresus_error
.
log
CustomLog
${
KRESUS_LOG_ROOT
}/
kresus_access
.
log
combined
# If your
installation supports HTTS
, you only this line:
# If your
setup uses SSL
, you only
need
this line:
<
Location
${
KRESUS_EXPOSED_PATH
}/ >
Redirect
/
https
://${
KRESUS_SERVER_NAME
}/
</
Location
>
# Otherwise, this is the correct setup to proxy external traffic to you Kresus installation
# Otherwise, this is the correct setup to proxy external traffic to your
# Kresus installation.
<
IfModule
mod_http2
.
c
>
Protocols
h2
http
/
1
.
1
</
IfModule
>
...
...
@@ -49,10 +51,10 @@ Define CERTS_ROOT /etc/letsencrypt/live/${KRESUS_SERVER_NAME}
</
VirtualHost
>
# If you don't plan to support HTTPS, you can skip this part.
# Otherwise, CERTS_ROOT variable need to point to you certs directory.
# Otherwise, CERTS_ROOT variable need to point to you
r
certs directory.
<
VirtualHost
*:
443
>
ServerName
${
KRESUS_SERVER_NAME
}
# If you are using Docker, it's better to drop this line altogether
# If you are using Docker, it's better to drop this line altogether
.
DocumentRoot
${
KRESUS_ROOT
}/
SSLEngine
on
...
...
@@ -64,16 +66,16 @@ Define CERTS_ROOT /etc/letsencrypt/live/${KRESUS_SERVER_NAME}
ErrorLog
${
KRESUS_LOG_ROOT
}/
kresus_error
.
log
CustomLog
${
KRESUS_LOG_ROOT
}/
kresus_access
.
log
combined
Header
set
Strict
-
Transport
-
Security
max
-
age
=
15768000
<
IfModule
mod_http2
.
c
>
Protocols
h2
http
/
1
.
1
</
IfModule
>
<
Location
${
KRESUS_EXPOSED_PATH
}/ >
# Create /home/kresus/.htpasswd file with `htpasswd -c /home/kresus/.htpasswd`
# In Debian, `htpasswd` is provided by the package `apache2-utils`
# Create /home/kresus/.htpasswd file with `htpasswd -c /home/kresus/.htpasswd`
.
# In Debian, `htpasswd` is provided by the package `apache2-utils`
.
AuthType
basic
AuthUserFile
/
home
/
kresus
/.
htpasswd
Require
valid
-
user
...
...
@@ -82,7 +84,7 @@ Define CERTS_ROOT /etc/letsencrypt/live/${KRESUS_SERVER_NAME}
ProxyPreserveHost
On
LimitRequestBody
8192
</
Location
>
<
Location
~ ${
KRESUS_EXPOSED_PATH
}/.*\.(
css
|
js
|
png
|
jpe
?
g
|
svg
|
eot
|
woff2
?)$ >
ProxyPass
http
://
127
.
0
.
0
.
1
:${
KRESUS_LOCAL_PORT
}
redirect
=
""
timeout
=
600
ProxyPreserveHost
On
...
...
@@ -93,5 +95,3 @@ Define CERTS_ROOT /etc/letsencrypt/live/${KRESUS_SERVER_NAME}
AllowEncodedSlashes
On
</
VirtualHost
>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment