nginx.md 875 Bytes
Newer Older
les's avatar
les committed
1
---
les's avatar
les committed
2
layout: default
les's avatar
les committed
3
title: Nginx setup
les's avatar
les committed
4
5
permalink: /install/nginx
parent: Install
les's avatar
les committed
6
7
---

les's avatar
les committed
8
9


les's avatar
les committed
10
##  Nginx proxy configuration
Vince's avatar
Vince committed
11
This is the default nginx configuration for gancio, please modify at least «YOUR_DOMAIN». Note that it does not include HTTPS setup but you can easily use [certbot](https://certbot.eff.org/) for that.
les's avatar
les committed
12

Vince's avatar
Vince committed
13
14
15
- __You should be in the correct directory__
`/etc/nginx/sites-available`

les's avatar
les committed
16
17
18
19
```nginx
server {
  listen 80;
  listen [::]:80;
Vince's avatar
Vince committed
20
  server_name <<YOUR_DOMAIN>>;
les's avatar
les committed
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

  keepalive_timeout    70;
  sendfile             on;
  client_max_body_size 80m;

  location / {
    try_files $uri @proxy;
  }

  location @proxy {
    proxy_set_header Host $host;
    proxy_pass http://127.0.0.1:13120;
  }
}

Vince's avatar
Vince committed
36

les's avatar
les committed
37
```
Vince's avatar
Vince committed
38
39
40
41
42

- __Following this, you should create a link to the file in sites-enabled:__
```bash
ln -s /etc/nginx/sites-available/<your-config> /etc/nginx/sites-enabled/
```