Skip to content

Commit 0ce9ff3

Browse files
committed
Update nginx config to refect recent changes
1 parent 6178c1e commit 0ce9ff3

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

nginx-site.conf

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
server {
2+
listen 443 ssl http2;
3+
server_name tempfiles.carlgo11.com www.tempfiles.carlgo11.com;
4+
5+
root /var/www/tempfiles/backend;
6+
index index.php;
7+
include /etc/nginx/conf.d/headers.conf;
8+
9+
ssl_certificate /etc/letsencrypt/live/tempfiles.carlgo11.com/fullchain.pem;
10+
ssl_certificate_key /etc/letsencrypt/live/tempfiles.carlgo11.com/privkey.pem;
11+
ssl_ciphers 'AES256+EECDH:AES256+EDH';
12+
ssl_protocols TLSv1.2 TLSv1.3;
13+
14+
error_log /var/log/nginx/tempfiles.carlgo11.com/error.log warn;
15+
16+
client_body_buffer_size 12M;
17+
client_max_body_size 12M;
18+
19+
location / {
20+
proxy_pass http://127.0.0.1:4000;
21+
proxy_set_header Host $host;
22+
proxy_set_header X-Real-IP $remote_addr;
23+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
24+
}
25+
26+
location /api {
27+
root /var/www/html/tempfiles/backend;
28+
rewrite ^/(.*)+$ /API.php?$1;
29+
}
30+
31+
location ~* ^/(download|d)/ {
32+
root /var/www/html/temfiles/backend;
33+
rewrite ^/(.*)+$ /download.php?$1;
34+
}
35+
36+
location ~ \.php$ {
37+
include snippets/fastcgi-php.conf;
38+
fastcgi_pass unix:/run/php/tempfiles.carlgo11.com/php7.0-fpm.sock;
39+
40+
# Env vars
41+
fastcgi_param ag44jc7aqs2rsup2bb6cx7utc 'localhost';
42+
fastcgi_param hp7wz20wu4qfbfcmqywfai1j4 'tempfiles';
43+
fastcgi_param mom8c5hrbn8c1r5lro1imfyax 'password';
44+
fastcgi_param qb1yi60nrz3tjjjqqb7l2yqra 'tempfiles';
45+
fastcgi_param rb421p9wniz81ttj7bdgrg0ub 'files';
46+
}
47+
}
48+
49+
# HTTP config
50+
server {
51+
listen 80;
52+
server_name tempfiles.carlgo11.com www.tempfiles.carlgo11.com;
53+
54+
return 301 https://tempfiles.carlgo11.com;
55+
}

0 commit comments

Comments
 (0)