mirror of
https://github.com/linuxserver/docker-snapdrop.git
synced 2026-02-07 05:07:07 +08:00
29 lines
631 B
Plaintext
29 lines
631 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
|
|
listen 443 ssl;
|
|
|
|
root /app/snapdrop/client;
|
|
index index.php index.html index.htm;
|
|
|
|
server_name _;
|
|
|
|
ssl_certificate /config/keys/cert.crt;
|
|
ssl_certificate_key /config/keys/cert.key;
|
|
|
|
client_max_body_size 0;
|
|
|
|
location / {
|
|
root /app/snapdrop/client;
|
|
index index.html index.htm;
|
|
}
|
|
|
|
location /server {
|
|
proxy_connect_timeout 300;
|
|
proxy_pass http://localhost:3000;
|
|
proxy_set_header Connection "upgrade";
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header X-Forwarded-for $remote_addr;
|
|
}
|
|
}
|