Skip to content
This repository was archived by the owner on Mar 29, 2024. It is now read-only.

Commit c19e656

Browse files
committed
Remove env vars
1 parent 9ac4e70 commit c19e656

File tree

2 files changed

+52
-66
lines changed

2 files changed

+52
-66
lines changed

resources/nginx/api.tempfiles.conf

Lines changed: 28 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,28 @@
1-
# API config
2-
server {
3-
listen 443 ssl http2;
4-
server_name api.tempfiles.carlgo11.com;
5-
6-
ssl_certificate {path_to_cert}/cert.pem; #Change path
7-
ssl_certificate_key {path_to_key}/privkey.pem; #Change path
8-
ssl_ciphers 'CDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384';
9-
10-
error_log /var/log/nginx/api.tempfiles.carlgo11.com/error.log warn;
11-
12-
client_body_buffer_size 22M; # Max allowable upload size
13-
client_max_body_size 22M; # Max allowable upload size
14-
15-
include /etc/nginx/conf.d/headers.conf;
16-
17-
root /var/www/tempfiles.carlgo11.com/backend;
18-
19-
20-
add_header Access-Control-Allow-Origin "tempfiles.carlgo11.com"; # Change to "*" if the url doesn't work.
21-
22-
rewrite ^/(.*)+$ /api.php?$1;
23-
24-
location ~ \.php$ {
25-
include /etc/nginx/fastcgi_params;
26-
fastcgi_pass unix:/run/php/api.tempfiles/php-fpm.sock; # php sock path
27-
28-
# Env vars
29-
fastcgi_param ag44jc7aqs2rsup2bb6cx7utc 'localhost'; # hostname
30-
fastcgi_param hp7wz20wu4qfbfcmqywfai1j4 'tempfiles'; # username
31-
fastcgi_param mom8c5hrbn8c1r5lro1imfyax 'password'; # password
32-
fastcgi_param qb1yi60nrz3tjjjqqb7l2yqra 'tempfiles'; # database
33-
fastcgi_param rb421p9wniz81ttj7bdgrg0ub 'files'; # table
34-
}
35-
}
1+
# API config
2+
server {
3+
listen 443 ssl http2;
4+
server_name api.tempfiles.carlgo11.com;
5+
6+
ssl_certificate {path_to_cert}/cert.pem; #Change path
7+
ssl_certificate_key {path_to_key}/privkey.pem; #Change path
8+
ssl_ciphers 'CDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384';
9+
10+
error_log /var/log/nginx/api.tempfiles.carlgo11.com/error.log warn;
11+
12+
client_body_buffer_size 22M; # Max allowable upload size
13+
client_max_body_size 22M; # Max allowable upload size
14+
15+
include /etc/nginx/conf.d/headers.conf;
16+
17+
root /var/www/tempfiles.carlgo11.com/backend;
18+
19+
20+
add_header Access-Control-Allow-Origin "tempfiles.carlgo11.com"; # Change to "*" if the url doesn't work.
21+
22+
rewrite ^/(.*)+$ /api.php?$1;
23+
24+
location ~ \.php$ {
25+
include /etc/nginx/fastcgi_params;
26+
fastcgi_pass unix:/run/php/api.tempfiles/php-fpm.sock; # php sock path
27+
}
28+
}
Lines changed: 24 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,24 @@
1-
# Download config
2-
server {
3-
listen 443 ssl http2;
4-
server_name d.carlgo11.com download.carlgo11.com;
5-
6-
root /var/www/tempfiles.carlgo11.com/backend;
7-
8-
ssl_certificate {path_to_cert}/cert.pem; #Change path
9-
ssl_certificate_key {path_to_key}/privkey.pem; #Change path
10-
ssl_ciphers 'CDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384';
11-
12-
error_log /var/log/nginx/tempfiles.carlgo11.com/error.log warn;
13-
14-
include /etc/nginx/conf.d/headers.conf;
15-
16-
index download.php;
17-
18-
rewrite ^/(.*)+$ /download.php?$1;
19-
20-
location ~ \.php$ {
21-
include /etc/nginx/fastcgi_params;
22-
fastcgi_pass unix:/run/php/download.tempfiles/php-fpm.sock; # php sock path
23-
24-
# Env vars
25-
fastcgi_param ag44jc7aqs2rsup2bb6cx7utc 'localhost'; # hostname
26-
fastcgi_param hp7wz20wu4qfbfcmqywfai1j4 'tempfiles'; # username
27-
fastcgi_param mom8c5hrbn8c1r5lro1imfyax 'password'; # password
28-
fastcgi_param qb1yi60nrz3tjjjqqb7l2yqra 'tempfiles'; # database
29-
fastcgi_param rb421p9wniz81ttj7bdgrg0ub 'files'; # table
30-
}
31-
}
1+
# Download config
2+
server {
3+
listen 443 ssl http2;
4+
server_name d.carlgo11.com download.carlgo11.com;
5+
6+
root /var/www/tempfiles.carlgo11.com/backend;
7+
8+
ssl_certificate {path_to_cert}/cert.pem; #Change path
9+
ssl_certificate_key {path_to_key}/privkey.pem; #Change path
10+
ssl_ciphers 'CDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384';
11+
12+
error_log /var/log/nginx/tempfiles.carlgo11.com/error.log warn;
13+
14+
include /etc/nginx/conf.d/headers.conf;
15+
16+
index download.php;
17+
18+
rewrite ^/(.*)+$ /download.php?$1;
19+
20+
location ~ \.php$ {
21+
include /etc/nginx/fastcgi_params;
22+
fastcgi_pass unix:/run/php/download.tempfiles/php-fpm.sock; # php sock path
23+
}
24+
}

0 commit comments

Comments
 (0)