mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-26 16:30:57 +01:00
feat: add nginx proxy (#1073)
* feat: add nginx proxy * fix: adjust path for websocket client to connect
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
# Run migrations
|
||||
node ./db/migrations/$DB_DIALECT/migrate.cjs ./db/migrations/$DB_DIALECT
|
||||
|
||||
# Start nginx proxy
|
||||
# 1. Replace the HOSTNAME in the nginx template file
|
||||
# 2. Create the nginx configuration file from the template
|
||||
# 3. Start the nginx server
|
||||
envsubst '${HOSTNAME}' < /etc/nginx/templates/nginx.conf > /etc/nginx/nginx.conf
|
||||
nginx -g 'daemon off;' &
|
||||
|
||||
# Start Redis
|
||||
redis-server /app/redis.conf &
|
||||
|
||||
|
||||
Reference in New Issue
Block a user