|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- server {
- server_name ixyz.com;
- index index.php;
- root /home/root/friendica;
- rewrite ^ https://xyz.com$request_uri? permanent;
-
- }
-
-
-
-
-
-
-
-
-
-
- server {
- listen 443 ssl;
- listen [::]:443 ssl;
- server_name xyz.com
-
- index index.php;
- root /home/root/friendica;
-
- ssl on;
- ssl_certificate /etc/nginx/ssl/friendica.example.net.chain.pem;
- ssl_certificate_key /etc/nginx/ssl/example.net.key;
- ssl_session_timeout 5m;
- ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
- ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
- ssl_prefer_server_ciphers on;
- fastcgi_param HTTPS on;
-
- client_max_body_size 20m;
- client_body_buffer_size 128k;
-
-
- location / {
- rewrite ^/(.*) /index.php?q=$uri&$args last;
- }
-
-
-
- location ^~ /.well-known/ {
- allow all;
- rewrite ^/(.*) /index.php?q=$uri&$args last;
- }
- include mime.types;
-
-
-
-
- location ~* \.(jpg|jpeg|gif|png|ico|css|js|htm|html|ttf|svg)$ {
- expires 30d;
- try_files $uri /index.php?q=$uri&$args;
- }
-
- location ~* \.(tpl|md|tgz|log|out)$ {
- deny all;
- }
-
- location ~ [^/]\.php(/|$) {
-
- try_files $uri =404;
-
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
-
- fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
- include fastcgi_params;
- fastcgi_index index.php;
-
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
-
- fastcgi_buffers 16 16k;
- fastcgi_buffer_size 32k;
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- location ~ /\. {
- deny all;
- }
- }
-
|