Fixing directory location and default config
This commit is contained in:
parent
7f69051e64
commit
0cf5bb6d8c
3 changed files with 7 additions and 5 deletions
2
.build/Jenkinsfile
vendored
2
.build/Jenkinsfile
vendored
|
|
@ -173,7 +173,7 @@ pipeline {
|
|||
mkdir -p rpxy_${env.BUILD_VERSION}-1_amd64/usr/local/bin
|
||||
mkdir -p rpxy_${env.BUILD_VERSION}-1_amd64/etc/systemd/system
|
||||
mkdir -p rpxy_${env.BUILD_VERSION}-1_amd64/usr/share/doc/rpxy
|
||||
mkdir -p rpxy_${env.BUILD_VERSION}-1_amd64/etc/rpxy
|
||||
mkdir -p rpxy_${env.BUILD_VERSION}-1_amd64/etc/rpxy/acme_registry
|
||||
mkdir -p rpxy_${env.BUILD_VERSION}-1_amd64/DEBIAN
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -36,8 +36,10 @@ listen_ipv6 = false
|
|||
|
||||
######################################################################
|
||||
## Registering a backend app served by a domain name "localhost"
|
||||
#[apps.localhost]
|
||||
#server_name = 'localhost' # Domain name
|
||||
[apps.localhost]
|
||||
server_name = 'localhost' # Domain name
|
||||
|
||||
reverse_proxy = [{ upstream = [{ location = 'localhost:8080' }] }]
|
||||
|
||||
# Optional: TLS setting. if https_port is specified and tls is true above, either of this must be given.
|
||||
#tls = { https_redirection = true, tls_cert_path = '/certs/server.crt', tls_cert_key_path = '/certs/server.key' }
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ fi
|
|||
# Check if rpxy-webui is installed
|
||||
if dpkg-query -W -f='${Status}' rpxy-webui 2>/dev/null | grep -q "install ok installed"; then
|
||||
echo "rpxy-webui is installed. Starting rpxy with rpxy-webui"
|
||||
exec /usr/local/bin/rpxy -w -c /var/www/rpxy-webui/storage/app/config.toml
|
||||
exec /usr/bin/rpxy -w -c /var/www/rpxy-webui/storage/app/config.toml
|
||||
else
|
||||
echo "rpxy-webui is not installed. Starting with default config"
|
||||
|
||||
|
|
@ -25,5 +25,5 @@ else
|
|||
echo "# Default rpxy config file" > /etc/rpxy/config.toml
|
||||
fi
|
||||
|
||||
exec /usr/local/bin/rpxy -c /etc/rpxy/config.toml
|
||||
exec /usr/bin/rpxy -c /etc/rpxy/config.toml
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue