Hello everyone
Recently got xteve to work through nginx reverse proxy for https. This requires nginx running with letsencrypt certbot, and xteve running on default port. THis also requires a domain or subdomain as domain/folder does not work at all with xteve at the moment.
Here is the Nginx config
}
Recently got xteve to work through nginx reverse proxy for https. This requires nginx running with letsencrypt certbot, and xteve running on default port. THis also requires a domain or subdomain as domain/folder does not work at all with xteve at the moment.
Here is the Nginx config
PHP:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name DOMAIN;
location /.well-known {
alias /srv/.well-known;
allow all;
default_type "text/plain";
autoindex on;
}
location / {
return 301 https://$host$request_uri;
}
}
# SSL configuration
server {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
server_name DOMAIN;
ssl_certificate /etc/nginx/ssl/tv.DOMAIN/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/tv.DOMAIN/key.pem;
include snippets/ssl-params.conf;
client_max_body_size 40M;
server_tokens off;
index index.html index.php index.htm;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
include /etc/nginx/apps/*;
location ~ /\.ht {
deny all;
}
location / {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:34400/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_redirect off;
}
}