mirror of
https://github.com/arnaucube/configs.git
synced 2026-02-10 12:36:42 +01:00
20 lines
444 B
Markdown
20 lines
444 B
Markdown
# nginx-config
|
|
|
|
In `/etc/nginx/sites-enabled`
|
|
|
|
- file: `sub.domain.com`:
|
|
```
|
|
server {
|
|
server_name sub.domain.com;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:PORT;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_read_timeout 86400;
|
|
}
|
|
}
|
|
```
|
|
Then generate certificate with `certbot`
|