1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/writefreely_ynh.git synced 2024-09-03 20:36:02 +02:00
writefreely_ynh/conf/nginx.conf
eric_G 3552dc5a81
Testing (#113)
* Auto-update README

* Version 2 (#112)

* v2

* v2

* Auto-update README

* cleaning

* Auto-update README

* Update manifest.toml

* Update systemd.service

* Update systemd.service

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

* Auto-update README

* Update manifest.toml

* Auto-update README

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
2023-10-31 21:53:00 +01:00

24 lines
663 B
Nginx Configuration File

location ~ ^/.well-known/(webfinger|nodeinfo|host-meta) {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://127.0.0.1:__PORT__;
proxy_redirect off;
}
location ~ ^/(css|img|js|fonts)/ {
root __INSTALL_DIR__/static;
# Optionally cache these files in the browser:
# expires 12M;
}
location __PATH__/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://127.0.0.1:__PORT__;
proxy_redirect off;
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}