Adding gitea build scripts for Android, Linux GUI and dockerized website
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Nginx configuration for the static Flutter web bundle.
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# Everything the bundle cannot resolve itself is answered with the app, so
|
||||
# that reloading a deep link does not end in a 404.
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# Both files decide which version of the app the browser gets. They must
|
||||
# never be cached, otherwise a new deployment is not picked up.
|
||||
location = /index.html {
|
||||
add_header Cache-Control "no-store";
|
||||
}
|
||||
|
||||
location = /flutter_service_worker.js {
|
||||
add_header Cache-Control "no-store";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user