mioe
mioe2y ago

How deploy deno.fresh project for my VPS?

Hi I try setup fresh project: https://mint-house.app/ http://5.187.7.221:8000/ is there a task in fresh to generate static files ?
7 Replies
NeTT
NeTT2y ago
I don't think it is possible to have it generate static files as for deploying on a vps, make it a systemd service and use a reverse proxy like nginx
mioe
mioeOP2y ago
where can i see nginx config for deno/fresh?
NeTT
NeTT2y ago
there isn't any special config just normal nginx config
server {
listen 80;
server_name YOUR_URL_HERE;
location / {
proxy_pass http://localhost:YOUR_PORT;
}
}

server {
listen 443 ssl;
server_name YOUR_URL_HERE;
ssl_certificate /PATH/TO/YOUR/CERT.pem;
ssl_certificate_key /PATH/TO/YOUR/KEY.pem;
ssl_prefer_server_ciphers on;

location / {
proxy_pass http://localhost:YOUR_PORT;
}
}
server {
listen 80;
server_name YOUR_URL_HERE;
location / {
proxy_pass http://localhost:YOUR_PORT;
}
}

server {
listen 443 ssl;
server_name YOUR_URL_HERE;
ssl_certificate /PATH/TO/YOUR/CERT.pem;
ssl_certificate_key /PATH/TO/YOUR/KEY.pem;
ssl_prefer_server_ciphers on;

location / {
proxy_pass http://localhost:YOUR_PORT;
}
}
pretty much what I use
mioe
mioeOP2y ago
thx it`s work <:hooray_deno:1035517542200004688>
NeTT
NeTT2y ago
<:hooray_deno:1035517542200004688>
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Attacler/Bart
Attacler/Bart2y ago
you could bookmark the link of this thread somewhere