You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
946 B
Plaintext
37 lines
946 B
Plaintext
4 years ago
|
# nginx configuration for etebase server running on https://my.server.name
|
||
6 years ago
|
# typical location of this file would be /etc/nginx/sites-available/my.server.name.conf
|
||
|
|
||
|
server {
|
||
|
server_name my.server.name;
|
||
|
|
||
4 years ago
|
root /srv/http/etebase_server;
|
||
|
|
||
|
client_max_body_size 20M;
|
||
6 years ago
|
|
||
|
location /static {
|
||
|
expires 1y;
|
||
|
try_files $uri $uri/ =404;
|
||
|
}
|
||
|
|
||
4 years ago
|
location /media {
|
||
|
expires 1y;
|
||
|
try_files $uri $uri/ =404;
|
||
|
}
|
||
|
|
||
6 years ago
|
location / {
|
||
4 years ago
|
uwsgi_pass unix:/path/to/etebase_server.sock;
|
||
6 years ago
|
include uwsgi_params;
|
||
|
}
|
||
|
|
||
|
# change 443 to say 9443 to run on a non standard port
|
||
4 years ago
|
listen 443 ssl;
|
||
|
listen [::]:443 ssl;
|
||
6 years ago
|
# Enable these two instead of the two above if your nginx supports http2
|
||
|
# listen 443 ssl http2;
|
||
|
# listen [::]:443 ssl http2;
|
||
4 years ago
|
|
||
6 years ago
|
ssl_certificate /path/to/certificate-file
|
||
|
ssl_certificate_key /path/to/certificate-key-file
|
||
|
# other ssl directives as needed
|
||
4 years ago
|
}
|