- Modifié
Sujet de discussion relatif au tutoriel : Hébergez vos images : "L.U.T.Im".
seule problème lorsque je met le bousin en route je suis rediriger vers l'équivalent de lufi.domain.tld aucune différence notable.hydrog3n wrote:Salut, quelqu'un aurait Lutim d'installer avec l'api d'activé ? J'aimerais faire des tests pour ajouter le service à mon app : http://mondedie.fr/d/6952
# array of authorized domains for API calls.
# if you want to authorize everyone to use the API: ['*']
# optional, no domains allowed by default
#allowed_domains => ['http://1.example.com', 'http://2.example.com'],
allowed_domains => ['https://aplitim.domain.tld],
allowed_domains => ['*'],
Tu me passe ton lien je te dirais vite si ça marche # if you want to authorize everyone to use the API: ['*']
cpan carton
Carton devrait prendre un C majuscule. chown -R www-data:www-data lufi
Le dossier cloné depuis le git est bien lutim. Il ne fonctionne pas ton lien. De plus c'est possible de pas avoir de https ?billred wrote:comme susnommé plus en haut j'avais bien fais un crt+w "api" cela m’amener bien iciBref...
allowed_domains => ['https://sub-domain.domain.tld],
hydrog3n essaye cela
[03:40][sd-****][/var/www/lutim]
[#] root -> ls -alsh
total 240K
4.0K drwxr-xr-x 14 www-data www-data 4.0K Oct 16 03:33 .
4.0K drwxr-xr-x 11 root root 4.0K Oct 16 02:10 ..
4.0K drwx------ 2 root root 4.0K Oct 16 03:33 files
4.0K drwxr-xr-x 8 www-data www-data 4.0K Oct 16 02:10 .git
4.0K drwxr-xr-x 3 www-data www-data 4.0K Oct 16 02:10 lib
4.0K drwxr-xr-x 6 www-data www-data 4.0K Oct 16 02:12 local
4.0K drwxr-xr-x 2 www-data www-data 4.0K Oct 16 02:25 log
4.0K drwxr-xr-x 7 www-data www-data 4.0K Oct 16 02:25 public
4.0K drwxr-xr-x 2 www-data www-data 4.0K Oct 16 03:36 script
4.0K drwxr-xr-x 2 www-data www-data 4.0K Oct 16 02:10 t
4.0K drwxr-xr-x 4 www-data www-data 4.0K Oct 16 02:10 templates
4.0K drwx------ 2 www-data www-data 4.0K Oct 16 03:32 tmp
4.0K drwxr-xr-x 2 www-data www-data 4.0K Oct 16 02:10 .tx
4.0K drwxr-xr-x 2 www-data www-data 4.0K Oct 16 02:10 utilities
4.0K -rw-r--r-- 1 www-data www-data 759 Oct 16 02:10 AUTHORS.md
20K -rw-r--r-- 1 www-data www-data 18K Oct 16 02:10 bootstrap-config.json
4.0K -rw-r--r-- 1 www-data www-data 2.9K Oct 16 02:10 CHANGELOG
4.0K -rw-r--r-- 1 www-data www-data 107 Oct 16 02:10 CONTRIBUTING.md
4.0K -rw-r--r-- 1 www-data www-data 708 Oct 16 02:10 cpanfile
64K -rw-r--r-- 1 www-data www-data 64K Oct 16 02:15 cpanfile.snapshot
4.0K -rw-r--r-- 1 www-data www-data 1.7K Oct 16 02:10 fontello-config.json
4.0K -rw-r--r-- 1 www-data www-data 150 Oct 16 02:10 .gitignore
36K -rw-r--r-- 1 www-data www-data 34K Oct 16 02:10 LICENSE
8.0K -rw-r--r-- 1 www-data www-data 5.4K Oct 16 02:39 lutim.conf
8.0K -rw-r--r-- 1 www-data www-data 5.2K Oct 16 02:10 lutim.conf.template
16K -rw-r--r-- 1 www-data www-data 13K Oct 16 03:33 lutim.db
4.0K -rw-r--r-- 1 www-data www-data 293 Oct 16 02:10 Makefile
4.0K -rw-r--r-- 1 www-data www-data 3.0K Oct 16 02:10 README.md
création du dossier files automatique avec droit root fichier up également avec droit root # vim:set sw=4 ts=4 sts=4 ft=perl expandtab:
{
####################
# Hypnotoad settings
####################
# see http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad for a full list of settings
hypnotoad => {
# array of IP addresses and ports you want to listen to
listen => ['http://127.0.0.1:8181'],
},
################
# Lutim settings
################
# put a way to contact you here and uncomment it
# mandatory
#contact => 'John Doe, admin[at]example.com',
contact => 'lolilol@gmail.com',
# random string used to encrypt cookies
# mandatory
secrets => ['fdjsofjoihrei'],
# length of the images random URL
# optional, default is 8
length => 8,
# length of the encryption key
# optional, default is 8
crypto_key_length => 8,
# how many URLs will be provisioned in a batch ?
# optional, default is 5
provis_step => 5,
# max number of URLs to be provisioned
# optional, default is 100
provisioning => 100,
# anti-flood protection delay, in seconds
# users won't be able to ask Lutim to download images more than one per anti_flood_delay seconds
# optional, default is 5
anti_flood_delay => 5,
# twitter account which will appear on twitter cards
# see https://dev.twitter.com/docs/cards/validation/validator to register your Lutim instance on twitter
# optional, default is @framasky
#tweet_card_via => '@framasky',
# max image size, in octets
# you can write it 10*1024*1024
# optional, default is 10485760
max_file_size => 10485760,
# if you want to have piwik statistics, provide a piwik image tracker
# only the image tracker is allowed, no javascript
# optional, no default
#piwik_img => 'https://piwik.example.org/piwik.php?idsite=1&rec=1',
# if you want to include something in the right of the screen, put it here
# here's an exemple to put the logo of your hoster
# optional, no default
#hosted_by => 'My super hoster <img src="http://hoster.example.com" alt="Hoster logo">',
# DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED
# Lutim now checks if the X-Forwarded-Proto header is present and equal to https.
# set to 1 if you use Lutim behind a secure web server
# optional, default is 0
#https => 0,
# broadcast_message which will displayed on all pages of Lutim (but no in json response)
# optional, no default
#broadcast_message => 'Maintenance',
# array of authorized domains for API calls.
# if you want to authorize everyone to use the API: ['*']
# optional, no domains allowed by default
#allowed_domains => ['http://1.example.com', 'http://2.example.com'],
allowed_domains => ['http://hydrog3n.monk3y-b0x.ga'],
# default time limit for files
# valid values are 0, 1, 7, 30 and 365
# optional, default is 0 (no limit)
default_delay => 1,
# number of days after which the images will be deleted, even if they were uploaded with "no delay" (or value superior to max_delay)
# a warning message will be displayed on homepage
# optional, default is 0 (no limit)
max_delay => 0,
# if set to 1, all the images will be encrypted and the encryption option will no be displayed
# optional, default is 0
always_encrypt => 1,
# length of the image's delete token
# optional, default is 24
token_length => 24,
# URL sub-directory in which you want Lutim to be accessible
# example: you want to have Lutim under https://example.org/lutim/
# => set prefix to '/lutim' or to '/lutim/', it doesn't matter
# optional, defaut is /
#prefix => '/',
# define a path to the SQLite database
# you can define it relative to lutim directory or set an absolute path
# remember that it has to be in a directory writable by Lutim user
# optional, default is lutim.db
db_path => 'lutim.db',
##########################
# Lutim cron jobs settings
##########################
# number of days shown in /stats page (used with script/lutim cron stats)
# optional, default is 365
stats_day_num => 1,
# number of days senders' IP addresses are kept in database
# after that delay, they will be deleted from database (used with script/lutim cron cleanbdd)
# optional, default is 365
keep_ip_during => 1,
# max size of the files directory, in octets
# used by script/lutim cron watch to trigger an action
# optional, no default
#max_total_size => 10*1024*1024*1024,
max_total_size => 2147483648,
# default action when files directory is over max_total_size (used with script/lutim cron watch)
# valid values are 'warn', 'stop-upload' and 'delete'
# please, see readme
# optional, default is 'warn'
policy_when_full => 'warn',
# images which are not viewed since delete_no_longer_viewed_files days will be deleted by the cron cleanfiles task
# if delete_no_longer_viewed_files is not set, the no longer viewed files will NOT be deleted
# optional, no default
delete_no_longer_viewed_files => 7
#delete_no_longer_viewed_files => 90
};
Ça marche pour moi et avec https. Merci.hydrog3n wrote:Pour ce que ça dit j'ai ajouté lutim sur l'app https://github.com/Hydrog3n/upload-screenshot
Le vhost de nginx est fourni. Où est le problème ? Et oui, tout cohabite parfaitement.NicCo wrote:Est-ce quelqu'un arrive à faire cohabiter rutorrent, cakebox et lutim / lutfi ? J'ai un peu de mal à configurer le lutim.conf pour nginx
http2
du vhost nginx (ligne 6).