jean-cloud-services/old_services/garradin.jean-cloud.net/nginx_server.conf
2024-01-02 17:50:14 +01:00

28 lines
924 B
Plaintext
Executable File

server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /etc/letsencrypt/live/garradin.jean-cloud.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/garradin.jean-cloud.net/privkey.pem;
server_name garradin.jean-cloud.net www.garradin.jean-cloud.net;
root /data/garradin.jean-cloud.net/garradin-0.9.8.1/www;
location / {
index index.php /_route.php;
try_files $uri $uri/ index.php /index.php$is_args$args;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass php.garradinjean-cloudnet.docker:9000;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/src/app/$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTP_HOST $host;
fastcgi_param DOCUMENT_ROOT /usr/src/app/www;
}
}