Added nginx config
This commit is contained in:
parent
a3b04a0f0b
commit
05d9793258
16
nginx-config-files/houtmarkt-app.conf
Normal file
16
nginx-config-files/houtmarkt-app.conf
Normal file
@ -0,0 +1,16 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
root /houtmarkt-jeremy/nginx-data/
|
||||
|
||||
location /static/ {
|
||||
alias /houtmarkt-jeremy/nginx-data/staticfiles/;
|
||||
# Never forget the fact that this little statement being root instead of alias caused us to lose more than a day troubleshooting
|
||||
}
|
||||
|
||||
location {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_pass http://127.0.0.1:8080/;
|
||||
}
|
||||
}
|
18
readme.md
18
readme.md
@ -4,11 +4,13 @@ Well the title says it all, really
|
||||
|
||||
---
|
||||
## **Install Instructions**
|
||||
> 1. Install python3, python3-devel and pip3
|
||||
> 2. Pip install django uwsgi
|
||||
> 3. Git Clone this repo
|
||||
> 4. Edit the paths in systemd-files/houtmarkt-uwsgi.service
|
||||
> 5. Copy the service file to /etc/systemd/system/
|
||||
> 6. Create user www-houtmarkt and group www-data, add www-houtmarkt to www-data
|
||||
> 7. ???
|
||||
> 8. Profit
|
||||
> 1. Install python3, python3-devel pip3 and nginx
|
||||
> 2. Move nginx-config-files/houtmarkt-app.conf to your nginx config.d or sites-available or whatever you use
|
||||
> 3. Make Django pull the staticfiles into nginx-data/staticfiles
|
||||
> 4. Pip install django uwsgi
|
||||
> 5. Git Clone this repo
|
||||
> 6. Edit the paths in systemd-files/houtmarkt-uwsgi.service
|
||||
> 7. Copy the service file to /etc/systemd/system/
|
||||
> 8. Create user www-houtmarkt and group www-data, add www-houtmarkt to www-data
|
||||
> 9. ???
|
||||
> 10. Profit
|
||||
|
Loading…
Reference in New Issue
Block a user