Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Nginx Unit Webserver #83

Merged
merged 7 commits into from
Mar 12, 2021
Merged

Add Nginx Unit Webserver #83

merged 7 commits into from
Mar 12, 2021

Conversation

linknum23
Copy link
Contributor

@linknum23 linknum23 commented Mar 10, 2021

Add a fully featured production webserver with dynamic reconfiguration

This enables a lot of features we haven't had up until now:

  • Serve on port 80 (no more :5000 unless we are debugging)
  • Future SSL on 443
  • Runtime server reconfiguration (this should make updates observable)
  • Application runs on startup

@linknum23 linknum23 added the enhancement New feature or request label Mar 10, 2021
@linknum23 linknum23 self-assigned this Mar 10, 2021
@linknum23 linknum23 marked this pull request as ready for review March 11, 2021 21:58
@linknum23 linknum23 added this to the 0.5 milestone Mar 11, 2021
@linknum23 linknum23 linked an issue Mar 12, 2021 that may be closed by this pull request
@@ -29,6 +29,7 @@ ssh $RPI_IP_ADDRESS "mkdir -p ${RPI_HOME_FOLDER}/web/static"
ssh $RPI_IP_ADDRESS "mkdir -p ${RPI_HOME_FOLDER}/web/imgs"
ssh $RPI_IP_ADDRESS "mkdir -p ${RPI_HOME_FOLDER}/config"
ssh $RPI_IP_ADDRESS "mkdir -p ${RPI_HOME_FOLDER}/fw"
ssh $RPI_IP_ADDRESS "mkdir -p ${RPI_HOME_FOLDER}/debs"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to document how to build these packages on the pi

config/unit.json Outdated
"home": "/home/pi/venv/",
"module": "amplipi.wsgi",
"working_directory": "/home/pi/",
"environment": { "APPGEN" : "999" }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove unused configuration

@linknum23 linknum23 merged commit 0729f6a into master Mar 12, 2021
@linknum23 linknum23 deleted the nginx_unit branch March 18, 2021 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add web/application server pair to serve webapp on port 80
1 participant