mirror of
https://github.com/YunoHost-Apps/etherpad_mypads_ynh.git
synced 2024-09-03 18:36:09 +02:00
## Problem It's not possible to include a pad in a frame. The Libreto package need it. ## Solution Change the header ## PR Status - [x] Code finished. - [x] Tested with Package_check. - [x] Fix or enhancement tested. - [ ] Upgrade from last version tested. - [x] Can be reviewed and tested. ## Validation --- *Minor decision* - **Upgrade previous version** : - [x] **Code review** : Maniack C - [x] **Approval (LGTM)** : Maniack C - [x] **Approval (LGTM)** : JimboJoe - **CI succeeded** : [/badge/icon)](https://ci-apps-dev.yunohost.org/jenkins/job/etherpad_mypads_ynh%20allow-frame%20(Official)/) When the PR is marked as ready to merge, you have to wait for 3 days before really merging it.
18 lines
567 B
Nginx Configuration File
18 lines
567 B
Nginx Configuration File
location __PATH__/ {
|
|
if ($scheme = http) {
|
|
rewrite ^ https://$server_name$request_uri? permanent;
|
|
}
|
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
|
#sub_path_only rewrite ^__PATH__/admin$ __PATH__/admin/ permanent;
|
|
proxy_pass http://127.0.0.1:__PORT__/;
|
|
proxy_set_header Host $host;
|
|
proxy_buffering off;
|
|
more_set_headers "X-Frame-Options : ALLOWALL";
|
|
|
|
# Include SSOWAT user panel.
|
|
include conf.d/yunohost_panel.conf.inc;
|
|
}
|
|
|
|
location ~* __PATH__/p/[^/]*(_|%|\*)[^/]*/export/etherpad {
|
|
return 404;
|
|
}
|