generated from nhcarrigan/template
feat: image site
This commit is contained in:
@@ -0,0 +1,36 @@
|
|||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
server_name img.nhcarrigan.com;
|
||||||
|
ssl_certificate /etc/letsencrypt/live/img.nhcarrigan.com/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/img.nhcarrigan.com/privkey.pem;
|
||||||
|
|
||||||
|
# allow large file uploads
|
||||||
|
client_max_body_size 50000M;
|
||||||
|
|
||||||
|
# disable buffering uploads to prevent OOM on reverse proxy server and make uploads twice as fast (no pause)
|
||||||
|
proxy_request_buffering off;
|
||||||
|
|
||||||
|
# increase body buffer to avoid limiting upload speed
|
||||||
|
client_body_buffer_size 1024k;
|
||||||
|
|
||||||
|
# Set headers
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
|
||||||
|
# enable websockets: http://nginx.org/en/docs/http/websocket.html
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_redirect off;
|
||||||
|
|
||||||
|
# set timeout
|
||||||
|
proxy_read_timeout 600s;
|
||||||
|
proxy_send_timeout 600s;
|
||||||
|
send_timeout 600s;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://127.0.0.1:2283;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@ server {
|
|||||||
ssl_certificate /etc/letsencrypt/live/learn.nhcarrigan.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/learn.nhcarrigan.com/fullchain.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/learn.nhcarrigan.com/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/learn.nhcarrigan.com/privkey.pem;
|
||||||
|
|
||||||
root /home/naomi/learn;
|
root /home/naomi/learn/dist;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
.nginx/nginx/sites-available/img.conf
|
||||||
Symlink
+1
@@ -0,0 +1 @@
|
|||||||
|
sites-available/img.conf
|
||||||
Reference in New Issue
Block a user