schollz / cowyo

A feature-rich wiki webserver for minimalists :cow: :speech_balloon:
https://cowyo.com/
MIT License
920 stars 69 forks source link

May there have a nginx example for proxy this service? #151

Closed abserari closed 3 years ago

tonymadbrain commented 4 years ago

You can use something like:


server {
  server_name  mywiki.org;
  listen       80;

  location / {
    add_header Cache-Control   "no-cache, no-store, must-revalidate";
    add_header Pragma          no-cache;
    add_header Expires         0;
    proxy_set_header Host      $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_pass                 http://127.0.0.1:8050;
  }
}