Add vhosts for ttrss.sadiqsaif.com
This commit is contained in:
parent
4dafe9ee93
commit
9bea7f7d08
@ -216,6 +216,36 @@
|
|||||||
- resolver 8.8.8.8 valid=300s
|
- resolver 8.8.8.8 valid=300s
|
||||||
- add_header Strict-Transport-Security max-age=31536000
|
- add_header Strict-Transport-Security max-age=31536000
|
||||||
- error_page 404 /404.html
|
- error_page 404 /404.html
|
||||||
|
ttrss.sadiqsaif.com.http:
|
||||||
|
- listen {{ ansible_default_ipv4.address }}:80
|
||||||
|
- listen [{{ ansible_default_ipv6.address }}]:80
|
||||||
|
- server_name ttrss.sadiqsaif.com
|
||||||
|
- return 301 "https://$host$request_uri"
|
||||||
|
ttrss.sadiqsaif.com.https:
|
||||||
|
- listen {{ ansible_default_ipv4.address }}:443 ssl http2
|
||||||
|
- listen [{{ ansible_default_ipv6.address }}]:443 ssl http2
|
||||||
|
- server_name ttrss.sadiqsaif.com
|
||||||
|
- root "/srv/www/ttrss.sadiqsaif.com"
|
||||||
|
- index index.php index.html
|
||||||
|
- access_log "/var/log/nginx/ttrss.sadiqsaif.com.access.log"
|
||||||
|
- error_log "/var/log/nginx/ttrss.sadiqsaif.com.error.log"
|
||||||
|
- client_max_body_size 10M
|
||||||
|
- ssl_certificate "/etc/ssl/letsencrypt/ttrss.sadiqsaif.com.crt"
|
||||||
|
- ssl_certificate_key "/etc/ssl/letsencrypt/ttrss.sadiqsaif.com.pem"
|
||||||
|
- ssl_stapling on
|
||||||
|
- resolver 8.8.8.8 valid=300s
|
||||||
|
- add_header Strict-Transport-Security max-age=31536000
|
||||||
|
- location / {
|
||||||
|
try_files $uri $uri/ /index.php?$args;
|
||||||
|
}
|
||||||
|
- location ~ \.php$ {
|
||||||
|
try_files $uri =404;
|
||||||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
fastcgi_pass php;
|
||||||
|
}
|
||||||
nginx_configs:
|
nginx_configs:
|
||||||
gzip:
|
gzip:
|
||||||
- gzip on
|
- gzip on
|
||||||
|
Loading…
Reference in New Issue
Block a user