Fixing directory location and default config

This commit is contained in:
Gamerboy59 2024-09-08 22:42:17 +02:00 committed by GitHub
commit 0cf5bb6d8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

2
.build/Jenkinsfile vendored
View file

@ -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
"""

View file

@ -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' }

View file

@ -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