|
|
|
@ -78,7 +78,7 @@ server {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Now we move this file to `/etc/nginx/sites-available` and symlink it to `/etc/nginx/sites-enabled`.
|
|
|
|
|
After restarting Nginx and launching Daphne (on port 8001), you should be able to surf to the same url as before and see "It works!".
|
|
|
|
|
After restarting Nginx and launching Uvicorn (on port 8001), you should be able to surf to the same url as before and see "It works!".
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
$ sudo cp etebase_nginx.conf /etc/nginx/sites-available/
|
|
|
|
@ -109,7 +109,7 @@ upstream etebase {
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
This will create a file socket at `/tmp/etebase_server.sock`.
|
|
|
|
|
Now, we change the way we run Daphne to use the same file socket.
|
|
|
|
|
Now, we change the way we run Uvicorn to use the same file socket.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|