mirror of
https://github.com/YunoHost-Apps/cockpit_ynh.git
synced 2024-09-03 18:16:26 +02:00
update
This commit is contained in:
parent
d82fdbf6bd
commit
b67673d641
3 changed files with 21 additions and 18 deletions
|
@ -1,8 +1,6 @@
|
|||
# Cockpit app for YunoHost
|
||||
Cockpit Server
|
||||
|
||||
# NOT WORK IS IN DEV
|
||||
|
||||
- [Yunohost project](https://yunohost.org)
|
||||
- [Cockpit website](https://cockpit-project.org/)
|
||||
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
SOURCE_URL=https://github.com/MediaBrowser/Emby.Releases/releases/download/4.0.2.0/emby-server-deb_4.0.2.0_amd64.deb
|
||||
SOURCE_SUM=8048da68873d2da8c67c1abf73b5383dc82cef49e9182e9872f11e5127b3b987cf33e995d0956b0cb33d113ae37fef3b2357974b98e9a290fdf618f5a04f42b8
|
||||
SOURCE_SUM_PRG=sha512sum
|
||||
SOURCE_FORMAT=deb
|
||||
SOURCE_IN_SUBDIR=false
|
||||
SOURCE_EXTRACT=false
|
||||
SOURCE_FILENAME=emby-server-deb.deb
|
|
@ -1,13 +1,25 @@
|
|||
location ^~ __PATH__/ {
|
||||
# Force usage of https
|
||||
if ($scheme = http) {
|
||||
rewrite ^ https://$server_name$request_uri? permanent;
|
||||
}
|
||||
|
||||
location __PATH__/ {
|
||||
proxy_pass http://127.0.0.1:__PORT__;
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
|
||||
proxy_http_version 1.1;
|
||||
proxy_buffering off;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
# needed for websocket
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
# change scheme of "Origin" to http
|
||||
proxy_set_header Origin http://$host;
|
||||
|
||||
# Pass ETag header from cockpit to clients.
|
||||
# See: https://github.com/cockpit-project/cockpit/issues/5239
|
||||
gzip off;
|
||||
}
|
||||
|
||||
# Include SSOWAT user panel.
|
||||
include conf.d/yunohost_panel.conf.inc;
|
Loading…
Reference in a new issue