Skip to content

Commit d89a944

Browse files
committed
Added nginx config for certbot
1 parent 48f8f3c commit d89a944

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,6 @@ services:
326326

327327
### Volumes Setup ###########################################
328328

329-
330329
volumes:
331330
mysql:
332331
driver: "local"

nginx/sites/laravel-https.conf

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
server {
2+
3+
listen 443 default_server;
4+
listen [::]:443 default_server ipv6only=on;
5+
6+
ssl on;
7+
ssl_certificate /var/certs/cert1.pem;
8+
ssl_certificate_key /var/certs/privkey1.pem;
9+
10+
server_name laravel;
11+
root /var/www/laravel/public;
12+
index index.php index.html index.htm;
13+
14+
location / {
15+
try_files $uri $uri/ /index.php$is_args$args;
16+
}
17+
18+
location ~ \.php$ {
19+
try_files $uri /index.php =404;
20+
fastcgi_pass php-upstream;
21+
fastcgi_index index.php;
22+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
23+
include fastcgi_params;
24+
}
25+
26+
location ~ /\.ht {
27+
deny all;
28+
}
29+
30+
}

0 commit comments

Comments
 (0)