mirror of
https://github.com/pikami/palm-paste.git
synced 2025-02-16 17:25:07 +00:00
11 lines
408 B
Plaintext
11 lines
408 B
Plaintext
# replace all occurrences of "paste" with the root of your palm-paste installation
|
|
location /paste {
|
|
if ( $uri !~ ^/paste/(index\.php|css|js|robots\.txt|favicon\.ico|$) ) {
|
|
rewrite ^/paste/u/(.*)$ /paste/index.php?user=$1? last;
|
|
rewrite ^/paste/(.*)$ /paste/index.php?page=$1? last;
|
|
}
|
|
if ( $uri ~* ^/paste/u/(css|js) ) {
|
|
rewrite ^/paste/u/(.*)$ /paste/u/$1? last;
|
|
}
|
|
}
|