26 lines
817 B
Plaintext
Executable File
26 lines
817 B
Plaintext
Executable File
server {
|
|
listen 443 ssl http2;
|
|
listen [::]:443 ssl http2;
|
|
ssl_certificate /etc/letsencrypt/live/cousinades2.jean-cloud.net/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/cousinades2.jean-cloud.net/privkey.pem;
|
|
server_name cousinades2.jean-cloud.org www.cousinades2.jean-cloud.org;
|
|
|
|
index index.php;
|
|
root /data/cousinades2.jean-cloud.net/public;
|
|
|
|
location / {
|
|
#auth_basic "Restricted";
|
|
#auth_basic_user_file /data/cousinades2.jean-cloud.net/private/passwords.txt;
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass 172.29.8.100:9000;
|
|
fastcgi_index index.php;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME /usr/src/app/$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
}
|
|
}
|