Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,28 +200,29 @@ The application uses a configuration file named `config`, located in the root di
2. **Create a Configuration File**
Create `/etc/nginx/sites-available/seonaut` with the following content:

```nginx
server {
listen 80;
server_name example.com;

location / {
proxy_pass http://localhost:9000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}

location /crawl/ws {
proxy_pass http://localhost:9000/crawl/ws;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header Origin $scheme://$http_host;

proxy_cache_bypass $http_upgrade;

# Disable buffering/caching for WS
chunked_transfer_encoding off;
proxy_buffering off;
proxy_cache off;
}
}
```

3. **Enable HTTPS with Certbot**
Install Certbot and configure HTTPS:
Expand Down