diff options
Diffstat (limited to 'content/blog/2023-01-28-self-hosting-wger.md')
-rw-r--r-- | content/blog/2023-01-28-self-hosting-wger.md | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/content/blog/2023-01-28-self-hosting-wger.md b/content/blog/2023-01-28-self-hosting-wger.md index f1d4467..6a7a04c 100644 --- a/content/blog/2023-01-28-self-hosting-wger.md +++ b/content/blog/2023-01-28-self-hosting-wger.md @@ -18,29 +18,29 @@ own after installing wger: 1. Dashboard - - Dashboard view of Workout Schedule, Nutrition Plan, Weight Graph, & last + - Dashboard view of Workout Schedule, Nutrition Plan, Weight Graph, & last 5 Weight Logs 2. Training - - Workout Log - - Workout Schedule - - Calendar (shows weight logs and Bad/Neutral/Good days) - - Gallery (shows images you upload) - - Workout templates - - Public templates - - Exercises + - Workout Log + - Workout Schedule + - Calendar (shows weight logs and Bad/Neutral/Good days) + - Gallery (shows images you upload) + - Workout templates + - Public templates + - Exercises 3. Nutrition - - Nutrition plans - - BMI calculator - - Daily calories calculator - - Ingredient overview + - Nutrition plans + - BMI calculator + - Daily calories calculator + - Ingredient overview 4. Body Weight - - Weight overview + - Weight overview ## Documentation @@ -67,14 +67,14 @@ above. A few notes to explain the changes I made to the default files: -- I updated the `ALLOW_REGISTRAION` variable in `prod.env` to `False` after I - created an account via my LAN connection, **before** I connected this app to a - publicly-available domain. -- I uncommented and updated `CSRF_TRUSTED_ORIGINS` to be equal to the public - version of this app: `https://wger.example.com`. -- I updated the port within `docker-compose.yml`, within the `nginx` block. The - port I updated this to will be reflected in my nginx configuration file on the - server (NOT the wger nginx.conf file). +- I updated the `ALLOW_REGISTRAION` variable in `prod.env` to `False` after I + created an account via my LAN connection, **before** I connected this app to + a publicly-available domain. +- I uncommented and updated `CSRF_TRUSTED_ORIGINS` to be equal to the public + version of this app: `https://wger.example.com`. +- I updated the port within `docker-compose.yml`, within the `nginx` block. + The port I updated this to will be reflected in my nginx configuration file + on the server (NOT the wger nginx.conf file). ## Deploy @@ -89,17 +89,17 @@ You can now visit the website on your LAN by going to `localhost:YOUR_PORT` or by the server's IP, if you're not on the same machine that is running the container. -If you wish to connect this app to a public domain name, you'll need to point -an `A` DNS record from the domain to your server's public IP. You'll then need -to create a configuration file for whichever web server or reverse proxy you're +If you wish to connect this app to a public domain name, you'll need to point an +`A` DNS record from the domain to your server's public IP. You'll then need to +create a configuration file for whichever web server or reverse proxy you're using. Wger's README suggests the following reverse proxy configuration for Nginx: -``` conf +```conf upstream wger { # This port should match the port in the `nginx` block of docker-compose.yml - # If the container is running on this same machine, replace this with + # If the container is running on this same machine, replace this with # server 127.0.0.1:8080 server 123.456.789.0:8080; } |