# mysite_nginx.conf # the upstream component nginx needs to connect to upstream django { server unix:///tmp/etesync_server.sock; # for a file socket #server 127.0.0.1:8001; # for a web port socket (we'll use this first) } # configuration of the server server { # the port your site will be served on listen 8000; # the domain name it will serve for server_name etesync.mydomain.de; # substitute your machine's IP address or domain name charset utf-8; # max upload size client_max_body_size 75M; # adjust to taste location /static { alias /home/luke/server_skeleton/static; # Project's static files } # Finally, send all non-media requests to the Django server. location / { uwsgi_pass django; include /etc/nginx/uwsgi_params; # the uwsgi_params file, this path by default } listen 443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/meeting.mydomain.de/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/meeting.mydomain.de/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } /etc/nginx/sites-available/etesync_nginx.conf (END)