summaryrefslogtreecommitdiffhomepage
path: root/nginx/certs_default.conf
blob: 1904b28ecbdabaac863d56dd031f40bcdfd581ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
upstream php {
    server php:9000;
}

server {
    listen 80;
    server_name 100.75.105.112;
    root /var/www/html;
    index index.php index.html;

    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
        include fastcgi.conf;
        fastcgi_intercept_errors on;
        fastcgi_pass php;
    }
}

server {
    listen 443 ssl;
    server_name ${NGINX_SERVER_NAME};
    root /var/www/html;
    index index.php index.html;

    location / {
        try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
        include fastcgi.conf;
        fastcgi_intercept_errors on;
        fastcgi_pass php;
    }

	ssl_certificate /etc/nginx/certs/self-signed/cert.pem;
	ssl_certificate_key /etc/nginx/certs/self-signed/cert-key.pem;
}