Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- root /var/www/compas/public;
- index index.php index.html index.htm index.nginx-debian.html;
- server_name crm.compas.xyz www.crm.compas.xyz;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- location /daloradius/ {
- proxy_pass http://192.168.97.240/;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header HTTPS YES;
- proxy_redirect default;
- }
- # pass PHP scripts to FastCGI server
- #
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
- # With php-fpm (or other unix sockets):
- fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
- # With php-cgi (or other tcp sockets):
- # fastcgi_pass 127.0.0.1:9000;
- }
- # deny access to .htaccess files, if Apache's document root
- # concurs with nginx's one
- #
- location ~ /\.ht {
- deny all;
- }
- listen [::]:443 ssl ipv6only=on; # managed by Certbot
- listen 443 ssl; # managed by Certbot
- ssl_certificate /etc/letsencrypt/live/crm.compas.xyz-0001/fullchain.pem; # managed by Certbot
- ssl_certificate_key /etc/letsencrypt/live/crm.compas.xyz-0001/privkey.pem; # managed by Certbot
- include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
- ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
- }
- server {
- if ($host = www.crm.compas.xyz) {
- return 301 https://$host$request_uri;
- } # managed by Certbot
- if ($host = crm.compas.xyz) {
- return 301 https://$host$request_uri;
- } # managed by Certbot
- listen 80 default_server;
- listen [::]:80 default_server;
- server_name crm.compas.xyz www.crm.compas.xyz;
- return 404; # managed by Certbot
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement